gluonhq / maps

https://gluonhq.com/labs/maps/
GNU General Public License v3.0
142 stars 34 forks source link

Occasional jumps occur after zooming event ends #9

Closed jperedadnr closed 6 years ago

jperedadnr commented 6 years ago

After a zooming event ends, releasing at the same time both fingers won't cause any unexpected movement of the map, but if one finger is released with a small delay, or if it is not released at all, there is a sudden jump from the map towards the position of that finger. This is probably caused because the zoom position (center between two fingers) changes to the remaining finger's position, and a drag event happens moving the map from the former position to the latter.

johanvos commented 6 years ago

sort of. When only 1 touch point is detected, and that touch point if moving without being released, a synthetic mouseDraggedEvent is generated. We have to fix this later, by looking into removing synthesized mouseEvents (https://docs.oracle.com/javase/8/javafx/api/javafx/scene/input/MouseEvent.html#isSynthesized--)

jperedadnr commented 6 years ago

Ok, in the meantime I'll submit a quick fix to MapView.

jperedadnr commented 6 years ago

Fixed with PR #10