You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the latest version of Zynga Scroller with the new 'scrollingComplete' callback, which is really useful for locking/unlocking f.e. animations to preserve performance (mostly on android devices). Unfortunately, I've noticed that the event doesn't always trigger. After doing some research on this topic I've found that the following code fails (#990):
if (self.__interruptedAnimation || self.__isDragging) {
self.options.scrollingComplete();
}
Both self.__interruptedAnimation and self.__isDragging are set to false when bug occurs, consequently the self.options.scrollingComplete doesn't get called.
Steps to reproduce:
setup a scroller with the following option: { scrollingComplete: function(){ console.log('complete'); } }
scroll a small amount of content
wait a little before releasing when scrolled (so that no decelaration gets applied and the code runs into if (!self.__isDecelerating){ ... })
the log shouldn't output the 'complete'
You may have to try several times, the bug doesn't always reveal.
This was tested on an iPhone 4S running iOS 6.1.3 in mobile safari.
The text was updated successfully, but these errors were encountered:
kanongil
added a commit
to mediathand/scroller
that referenced
this issue
Jan 9, 2014
Hi guys,
I am using the latest version of Zynga Scroller with the new 'scrollingComplete' callback, which is really useful for locking/unlocking f.e. animations to preserve performance (mostly on android devices). Unfortunately, I've noticed that the event doesn't always trigger. After doing some research on this topic I've found that the following code fails (#990):
Both
self.__interruptedAnimation
andself.__isDragging
are set tofalse
when bug occurs, consequently theself.options.scrollingComplete
doesn't get called.Steps to reproduce:
{ scrollingComplete: function(){ console.log('complete'); } }
if (!self.__isDecelerating){ ... }
)You may have to try several times, the bug doesn't always reveal.
This was tested on an iPhone 4S running iOS 6.1.3 in mobile safari.
The text was updated successfully, but these errors were encountered: