Skip to content

Commit

Permalink
Merge pull request #1269 from OpenGeoscience/middle-button-pan
Browse files Browse the repository at this point in the history
perf: Add an action where the middle mouse button pans
  • Loading branch information
manthey authored Apr 20, 2023
2 parents 0e318ab + 46140bd commit 74bcf5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mapInteractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,12 @@ var mapInteractor = function (args) {
input: 'rotate',
owner: 'geo.mapInteractor',
name: 'touch zoom and rotate'
}, {
action: geo_action.pan,
input: 'middle',
modifiers: {shift: false, ctrl: false},
owner: 'geo.mapInteractor',
name: 'button pan'
}],

click: {
Expand Down

0 comments on commit 74bcf5a

Please sign in to comment.