Skip to content

Commit

Permalink
Fix slider zoom step count
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarciabriseno committed Feb 7, 2024
1 parent f39c859 commit 9f9799c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/Viewport/Helper/HelioviewerZoomer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const MAX_THRESHOLD = 1.5;
this._css_rules = [];
this._maxImageScale = zoomLevels[0];
this._minImageScale = zoomLevels[zoomLevels.length - 1];
this._slider = new ZoomControls(this._maxImageScale, zoomLevels.length, this._targetCenter.bind(this), this.jumpToZoomLevel.bind(this));
this._slider = new ZoomControls(this._maxImageScale, zoomLevels.length - 1, this._targetCenter.bind(this), this.jumpToZoomLevel.bind(this));
Helioviewer.userSettings.set('mobileZoomScale', 1);

// Make sure the sun is centered when the user requests centering the viewport
Expand Down

0 comments on commit 9f9799c

Please sign in to comment.