derek / scrollview-sandbox Goto Github PK
View Code? Open in Web Editor NEWA sandbox for YUI ScrollView work
A sandbox for YUI ScrollView work
Steps to reproduce:
s
global for easy console manipulations.pages.set('index', 1)
or s.pages.scrollToIndex(1)
and notice how neither work and if you try to interact with gestures it will become confusedA workaround from the integration side is to either delete _gesture or reset _gesture.axis to the pagination axis (in this case x
).
This seems to be symptomatic of keeping _gesture around long past gesture end and I think we would be better off storing just the relevant bits from a gesture needed for the transition and nulling it out -- combined with better checks for pagination axis when sv.pages.set('index', N)
and sv.pages.scrollToIndex
calls are made.
I still hope to dedicate some time to looking at this as well but figured it would be good to open an issue for tracking purposes.
Lots of testing has shown that while the visibility:hidden toggle does help to free up memory it doesn't help enough with touch responsiveness -- and to date a "treadmill" approach has shown to be the most promising.
Treadmill -- add/remove page nodes as necessary to maintain only a small subset of pages in the live DOM, thus creating a much smaller canvas for dragging and animating.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.