Closed jperedadnr closed 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--)
Ok, in the meantime I'll submit a quick fix to MapView
.
Fixed with PR #10
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.