diff options
Diffstat (limited to 'web/share/js/kvm/mouse.js')
-rw-r--r-- | web/share/js/kvm/mouse.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/web/share/js/kvm/mouse.js b/web/share/js/kvm/mouse.js index faacdb3e..894d64cf 100644 --- a/web/share/js/kvm/mouse.js +++ b/web/share/js/kvm/mouse.js @@ -247,9 +247,8 @@ export function Mouse(__getGeometry, __recordWsEvent) { var __streamWheelHandler = function(event) { // https://learn.javascript.ru/mousewheel // https://stackoverflow.com/a/24595588 - if (event.preventDefault) { - event.preventDefault(); - } + + event.preventDefault(); if (!__absolute && !__isRelativeCaptured()) { return; |