summaryrefslogtreecommitdiff
path: root/display.js
diff options
context:
space:
mode:
authorPavel Grunt <pgrunt@redhat.com>2015-01-14 18:42:59 +0100
committerJeremy White <jwhite@codeweavers.com>2015-01-15 12:56:20 -0600
commit84171b2406056349992a3aac82c6ba8b21792764 (patch)
tree8d7922c44bffbfbeb80c812b01719578940acffa /display.js
parent54ee82f004a85d99a742108bf63922be5c3f0800 (diff)
Use WheelEvent instead of MouseWheelEvent
MouseWheelEvent is deprecated and not working in Firefox.
Diffstat (limited to 'display.js')
-rw-r--r--display.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/display.js b/display.js
index 2aa5985..814ada6 100644
--- a/display.js
+++ b/display.js
@@ -691,7 +691,7 @@ SpiceDisplayConn.prototype.hook_events = function()
canvas.addEventListener('keyup', handle_keyup);
canvas.addEventListener('mouseout', handle_mouseout);
canvas.addEventListener('mouseover', handle_mouseover);
- canvas.addEventListener('mousewheel', handle_mousewheel);
+ canvas.addEventListener('wheel', handle_mousewheel);
canvas.focus();
}
}
@@ -709,7 +709,7 @@ SpiceDisplayConn.prototype.unhook_events = function()
canvas.removeEventListener('keyup', handle_keyup);
canvas.removeEventListener('mouseout', handle_mouseout);
canvas.removeEventListener('mouseover', handle_mouseover);
- canvas.removeEventListener('mousewheel', handle_mousewheel);
+ canvas.removeEventListener('wheel', handle_mousewheel);
}
}