mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.37k stars 1.33k forks source link

Add elastic bounce-back if tilt gesture hits maximum angle #2191

Open friedbunny opened 9 years ago

friedbunny commented 9 years ago

We should provide feedback at the end of the tilt range. Apple and Google do this by allowing users to go past the maximum pitch, but elastically snap back to max once the user releases the gesture. Google also does this at the beginning of the tilt if the user attempts to go the wrong way, Apple does not.

ezgif com-gif-maker

/cc @1ec5 @incanus @ansis

friedbunny commented 6 years ago

Increasing the maximum pitch in #12310 could be a good opportunity to claim some of the new pitch degrees for this elastic effect.

This could also be implemented in conjunction with snapping in #3874.

stale[bot] commented 5 years ago

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

stale[bot] commented 5 years ago

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.