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

After modified drag gesture, cursor reappears misplaced #8670

Closed 1ec5 closed 7 years ago

1ec5 commented 7 years ago

During Shift-drag and Option-drag gestures, MGLMapView hides the mouse cursor; afterwards, it repositions the cursor at the original location and makes it visible again. This maintains the illusion that the cursor has stayed in place. However, the repositioning code assumes the map view’s origin is at the origin of the window. In macosapp, if you open the Layers sidebar then Shift- or Option-drag, the mouse ends up in the wrong location.

1ec5 commented 7 years ago

Fixed in #9390 on the release-ios-v3.6.0-android-v5.1.0 branch for the macOS SDK v0.5.0 release.