Skip to content

Commit

Permalink
slow down zoom if shift key is held, close #836
Browse files Browse the repository at this point in the history
  • Loading branch information
Eden Halperin committed Jan 16, 2015
1 parent 9d418a3 commit bc3c357
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/ui/interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ function Interaction(el) {
}
}

// Slow down zoom if shift key is held for more precise zooming
if (ev.shiftKey && value) value = value / 4;

// Only fire the callback if we actually know what type of scrolling
// device the user uses.
if (type !== null) {
Expand Down

0 comments on commit bc3c357

Please sign in to comment.