liangzi7 / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

When map is fast scrolling as result of swipe, touching display should stop scrolling #429

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Quickly swipe finger across the map, so that it starts automatically 
scrolling, lift your finger at the end of gesture
2. While the map is still scrolling by itself, put your finger on display

What is the expected output? What do you see instead?
Map should stop scrolling in step 2. 
Instead map continues to scroll as if I'm not touching it

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

Please provide any additional information below.

Original issue reported on code.google.com by stawi...@gmail.com on 15 May 2013 at 10:11

GoogleCodeExporter commented 9 years ago
This may be as simple as calling mScroller.abortAnimation() in 
MapViewGestureDetectorListener.onDown(). Give that a try.

If that works, we should do it!

Original comment by kurtzm...@gmail.com on 15 May 2013 at 1:41

GoogleCodeExporter commented 9 years ago
Awesome, it works. I just put it as the first line of onDown(). Thank you very 
much!

In the long it should probably check if the scrolling animation was initiated 
by user, or was it start programatically.

Original comment by stawi...@gmail.com on 15 May 2013 at 2:11

GoogleCodeExporter commented 9 years ago
This has been implemented in r1233. It should only stop if you did a fling and 
not a call to setMapCenter.

Original comment by kurtzm...@gmail.com on 23 May 2013 at 5:44

GoogleCodeExporter commented 9 years ago

Original comment by kurtzm...@gmail.com on 11 Jun 2013 at 2:07