Bug with browser zooming
This commit is contained in:
1 parent
90d0d52060
commit
5661f9e429
1 file changed
+1
@@ -174,6 +174,7 @@ function newViewport () {
|
||||
}
|
||||
|
||||
function onMouseWheel (event) {
|
||||
if ((event.ctrlKey === true || event.metaKey === true)) { return }
|
||||
let morePower = 1
|
||||
let amount = event.delta
|
||||
if (event.buttons === 4) { morePower = 2 } // Mouse wheel pressed.
|
||||
|
||||
Reference in new issue
Block a user