Skip to content

Commit

Permalink
Fixed scroll-zoom "jump"-issue.
Browse files Browse the repository at this point in the history
Zoom should be parsed as float - not int
  • Loading branch information
Hallbergs committed Jan 25, 2023
1 parent 5195e59 commit be22910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion new-client/src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ class App extends React.PureComponent {
if (mergedParams.get("z")) {
if (
this.appModel.map.getView().getZoom() !==
parseInt(mergedParams.get("z"))
Number(mergedParams.get("z"))
) {
// …let's update our View's zoom.
this.appModel.map
Expand Down

0 comments on commit be22910

Please sign in to comment.