Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Use gesture recognizer for context menu #5593

Merged
merged 1 commit into from
Jul 7, 2016

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Jul 6, 2016

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.

/cc @kkaefer

@1ec5 1ec5 added bug macOS Mapbox Maps SDK for macOS labels Jul 6, 2016
@1ec5 1ec5 self-assigned this Jul 6, 2016
@1ec5
Copy link
Contributor Author

1ec5 commented Jul 7, 2016

Tested on a trackpad and a Magic Mouse. Still need to test on a standard USB mouse.

@kkaefer
Copy link
Member

kkaefer commented Jul 7, 2016

Awesome! Confirmed that this fixes the issue with a USB mouse as well.

@kkaefer kkaefer force-pushed the 1ec5-macos-context-drag-5078 branch from 270d9bd to cfb63bc Compare July 7, 2016 10:04
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.
@kkaefer kkaefer force-pushed the 1ec5-macos-context-drag-5078 branch from cfb63bc to e603cf4 Compare July 7, 2016 12:12
@kkaefer kkaefer merged commit e603cf4 into master Jul 7, 2016
@kkaefer kkaefer deleted the 1ec5-macos-context-drag-5078 branch July 7, 2016 12:40
@1ec5 1ec5 modified the milestone: macos-v0.3.0 Jan 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug macOS Mapbox Maps SDK for macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants