mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-08 19:22:57 +00:00
fix: mouse wheel zoom on previewer
This commit is contained in:
parent
e410272e6b
commit
fcb115f42d
@ -260,7 +260,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
wheelMove(event) {
|
wheelMove(event) {
|
||||||
this.scale += (event.wheelDeltaY / 100) * this.zoomStep;
|
this.scale += -Math.sign(event.deltaY) * this.zoomStep;
|
||||||
this.setZoom();
|
this.setZoom();
|
||||||
},
|
},
|
||||||
setZoom() {
|
setZoom() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user