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

Scroll to zoom on OS X #4685

Merged
merged 1 commit into from
Apr 12, 2016
Merged

Scroll to zoom on OS X #4685

merged 1 commit into from
Apr 12, 2016

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Apr 12, 2016

Added a hidden preference to MGLMapView that enables “unnatural zooming”, in which the scroll wheel zooms in and out, as in a Web browser, instead of scrolling the map, as is the platform convention on iOS and OS X.

Added a checkbox to osxapp’s preferences window that toggles this hidden preference via a binding. You can use this checkbox, or invoke defaults write com.mapbox.MapboxGL MGLScrollWheelZoomsMapView -bool YES, or pass -MGLScrollWheelZoomsMapView YES into osxapp as command line arguments.

Fixes #4670.

/cc @kkaefer

Added a hidden preference to MGLMapView that enables “unnatural zooming”, in which the scroll wheel zooms in and out, as in a Web browser, instead of scrolling the map, as is the platform convention on iOS and OS X.

Added a checkbox to osxapp’ preferences window that toggles this hidden preference via a binding. You can either use this checkbox or set the MGLScrollWheelZoomsMapView user default to YES.

Fixes #4670.
@1ec5 1ec5 self-assigned this Apr 12, 2016
@1ec5 1ec5 added feature macOS Mapbox Maps SDK for macOS labels Apr 12, 2016
@1ec5
Copy link
Contributor Author

1ec5 commented Apr 12, 2016

The OS X build failure is #4665 (comment). Merging.

@1ec5 1ec5 merged commit 24b4b1b into master Apr 12, 2016
@1ec5 1ec5 deleted the 1ec5-osx-unnatural-zoom-4670 branch April 12, 2016 17:00
@1ec5 1ec5 modified the milestone: osx-v0.1.0 May 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature macOS Mapbox Maps SDK for macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant