Skip to content

Commit

Permalink
+ and - buttons of the navbar now uses the zoom speed options
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyHeleine committed Sep 9, 2017
1 parent b5d9efa commit ff3be82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhotoSphereViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@ var PhotoSphereViewer = function(args) {

this.zoomIn = function() {
if (zoom_lvl < 100)
zoom(zoom_lvl + 1);
zoom(zoom_lvl + zoom_speed);
};

/**
Expand All @@ -1336,7 +1336,7 @@ var PhotoSphereViewer = function(args) {

this.zoomOut = function() {
if (zoom_lvl > 0)
zoom(zoom_lvl - 1);
zoom(zoom_lvl - zoom_speed);
};

/**
Expand Down

0 comments on commit ff3be82

Please sign in to comment.