Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Execute quickzoom scale change based on the Y axis delta change #15386

Merged
merged 1 commit into from
Aug 15, 2019

Conversation

LukasPaczos
Copy link
Member

Closes #15219.

Using finger's Y axis position allows for a linear zoom additions/deductions during the quick-zoom changes. This is in contrast to the previously used scale factor, which is based on the current span (distance from the origin) to previous span ratio and increases the closer the finger is to the origin of a gesture because the values are smaller.

The scale ratio based changes are also reliant on series of motion events' values and because the Android framework can skip some events, going back and forth during a quick-zoom might not have resulted in the same transformation. This was reproduced by the round-tripping test introduced in this commit.

@LukasPaczos LukasPaczos added the Android Mapbox Maps SDK for Android label Aug 15, 2019
@LukasPaczos LukasPaczos added this to the release-queso milestone Aug 15, 2019
…ange

Using finger's Y axis position allows for a linear zoom additions/deductions during the quick-zoom changes. This is in contrast to the previously used scale factor, which is based on the current span (distance from the origin) to previous span ratio and increases the closer the finger is to the origin of a gesture because the values are smaller.

The scale ratio based changes are also reliant on series of motion events' values and because the Android framework can skip some events, going back and forth during a quick-zoom might not have resulted in the same transformation. This was reproduced by the round-tripping test introduced in this commit.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use delta Y change for quick zoom
2 participants