Skip to content

Commit

Permalink
fix: mouse wheel zoom on previewer
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiresviana committed Mar 25, 2021
1 parent e410272 commit fcb115f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/files/ExtendedImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export default {
}
},
wheelMove(event) {
this.scale += (event.wheelDeltaY / 100) * this.zoomStep;
this.scale += -Math.sign(event.deltaY) * this.zoomStep;
this.setZoom();
},
setZoom() {
Expand Down

0 comments on commit fcb115f

Please sign in to comment.