Closed kkaefer closed 5 years ago
Minimizing and restoring the window also unbreaks click and drag events. So does rotating the map with two fingers.
@1ec5 any ideas on this? I'm hitting this frequently during debugging.
This is pretty bizarre. We might have to fix it by replacing the gesture recognizers with the older mouse event API.
Raw event handlers like -mouseDragged
do work even after opening the context menu. But that doesn’t completely solve the problem: developers expect to be able to attach an NSPressGestureRecognizer, for instance, to the map without resorting to raw event handling.
@1ec5 well, can we trigger what ever is run by the pinch-to-zoom or window-minification to restore mouse handlers?
I'm seeing this issue again.
This time, a right click disables panning both for USB mice and trackpad. Pinch zooming on the trackpad resets the lock and panning works again.
Right clicking opens the context menu. Dismissing it by left clicking somewhere else on the map triggers the bug. I could trigger the bug both with a USB mouse and clicking on the trackpad. It doesn't seem to trigger every time I open the context menu, but frequently enough.
I can’t reproduce this issue in macosapp as of 4eb54270d773bf60f948176c3ff7827d7f818a92. I tried control-tapping and two-finger tapping with a multitouch trackpad, as well as right-clicking with a standard USB mouse.
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.
After bringing up the context menu, and subsequently dismissing it, panning and rotation with the mouse does not work anymore.
This only happens when using the right mouse button of a physical mouse, or the two-finger tap on a trackpad, but NOT when using Ctrl+Tap or Ctrl+Left Click.
Zooming still works with the keyboard, the trackpad, or the mouse scrollwheel.
The map can be panned again after using pinch-to-zoom.
/cc @1ec5