fix: mouse scroll wheel direction

pull/555/head
Romain DEP. 2024-11-03 23:01:01 +07:00
parent a02146df17
commit 21cfb64f83
1 changed files with 2 additions and 2 deletions

@ -16,7 +16,7 @@ class ZoomComponent extends Component {
window.addEventListener("wheel", event => { window.addEventListener("wheel", event => {
if (event.ctrlKey) { if (event.ctrlKey) {
this.setZoomFactorAndSave(this.getCurrentZoom() + event.deltaY * 0.001); this.setZoomFactorAndSave(this.getCurrentZoom() - event.deltaY * 0.001);
} }
}); });
} }