-
Notifications
You must be signed in to change notification settings - Fork 176
Double tap to zoom #61
base: master
Are you sure you want to change the base?
Conversation
Per Android guidelines, double touch drag up should decrease content scale and double touch drag down should increase content scale. This is also the behavior in the official Google Maps Android application. http://developer.android.com/design/patterns/gestures.html
Like that! |
@ecgreb I realized that gmaps recently switched drag-zoom behaviour. It was probably a hidden feature there for most people before the general ui gesture... Still need to get used to it. Commited with slight changes to double-tap zoom. Thanks! |
tried out the latest commit for double tap. Very odd behavior. |
@stleusc do you see any difference to the original commit? or could you provide a test case for 'funny, jerky behaviour' ? :) |
oh, seems one commit went to nirvana. just commited the check for minimal double-tap-drag distance, which makes triggering double-tap zoom animation more reliable. |
@hjanetzek it was funny, the map behaved great on my Nexus 7 2013 tablet. On my Galaxy S4 it almost did not work. |
@hjanetzek now I know what my issue is, maybe you can add one or two features to the double tap zoom. What I have is a 'follow me' mode of the map, keeping my location centered. When this is on and I double tap on the map it starts zooming, moving my location out of the center, then I cancel that and center my location again. Request |
@hjanetzek Good example is current Google Maps app. Same procedure can be used to test the double tap zoom btw.... |
@stleusc please open a separate issue for this, take the time to make a pull request or at least a diff to make it easier to see your modifications. |
tried again ;) #63 should be it. |
Per Android guidelines, double touch drag up should decrease content scale and double touch drag down should increase content scale. This is also the behavior in the official Google Maps Android application.
http://developer.android.com/design/patterns/gestures.html
This change set also adds double tap to zoom functionality using
Animator#animateZoom(...)
.