Skip to content

Commit

Permalink
Reduce ctrl+scrollwheel zoom speed by 4x (fix #224)
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine committed Aug 9, 2023
1 parent e64646a commit 5dddff2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ instead of version numbers.
## 2023-08-09

* Fix PDF export of LaTeX text and arrows
* Reduce zoom speed via <kbd>Ctrl</kbd> + mouse wheel by 4x

## 2023-05-01

Expand Down
2 changes: 1 addition & 1 deletion client/DrawApp.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export DrawAppRoom = ->
deltaY *= currentBoard().clientBBox.height
if e.ctrlKey
## Ensure zoom-out motion is inverse of equivalent zoom-in
factor = 1 + 0.01 * Math.abs deltaY
factor = 1 + 0.0025 * Math.abs deltaY
factor = 1/factor if deltaY > 0
currentBoard().setScaleFixingPoint transform.scale * factor,
x: e.offsetX
Expand Down

0 comments on commit 5dddff2

Please sign in to comment.