randolph249 / iscroll-js

Automatically exported from code.google.com/p/iscroll-js
MIT License
0 stars 0 forks source link

onScrollEnd not called if scroller not moved (iScroll Lite Edition) #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Define onScrollStart and onScrollEnd functions on init
2. Just touch (click) on the scroll area without dragging
3. onScrollStart executes, onScrollEnd does not.

What is the expected output? What do you see instead?

I expect that onScrollEnd ALWAYS fires after onScrollStart regardless of how 
far the scroller div has moved(can be 0).

What version of the product are you using? On what operating system?

iScroll Lite Edition based on iScroll v4.0 Beta 4 on PlayBook Simulator 
(0.9.4), but it uses webkit and I imagine this is reproducible across all 
devices, since the code to call onScrollEnd() is inside of "if(that.moved)"

Please provide any additional information below.

I suggest either not firing onScrollStart or the easier solution is (what I 
have done) to add the call to onScrollEnd inside the if(!that.moved) in the 
"_end()" function.

Original issue reported on code.google.com by vita...@tungle.com on 18 Mar 2011 at 10:24