-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Context menu disables click and pan gesture recognizers #5078
Comments
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 |
@1ec5 well, can we trigger what ever is run by the pinch-to-zoom or window-minification to restore mouse handlers? |
#5593 fixes this issue. Now it kind of makes sense why this bug appeared in the first place: context menu handling relies on raw mouse events instead of gesture recognizers. Hopefully that’s the only edge case we need to worry about. |
NSView’s built-in context menu handling preempts non-right-click gesture recognizers, so preempt it with a right-click gesture recognizer that does essentially the same thing. With this change, two-finger double-tapping on a trackpad also zooms out, consistent with MapKit. Fixes #5078.
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 4eb5427. 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
The text was updated successfully, but these errors were encountered: