Skip to content
This repository has been archived by the owner on Nov 27, 2021. It is now read-only.

Commit

Permalink
Issue #162 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwouaiebe committed May 1, 2021
1 parent a98f266 commit 9f32f35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion buildNumber.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "buildNumber" : "00077"}
{ "buildNumber" : "00083"}
3 changes: 1 addition & 2 deletions src/dialogs/BaseDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,7 @@ function ourNewBaseDialog ( ) {
return;
}

const WHEEL_CORRECTION_FACTOR = 100;
let zoom = theTravelNotesData.map.getZoom ( ) - Math.round ( wheelEvent.deltaY / WHEEL_CORRECTION_FACTOR );
let zoom = theTravelNotesData.map.getZoom ( ) + ( ZERO > wheelEvent.deltaY ? ONE : -ONE );
zoom = Math.min ( theTravelNotesData.map.getMaxZoom ( ), zoom );
zoom = Math.max ( theTravelNotesData.map.getMinZoom ( ), zoom );
theTravelNotesData.map.setZoomAround (
Expand Down

0 comments on commit 9f32f35

Please sign in to comment.