diff options
author | Pavel Grunt <pgrunt@redhat.com> | 2015-01-14 18:42:59 +0100 |
---|---|---|
committer | Jeremy White <jwhite@codeweavers.com> | 2015-01-15 12:56:20 -0600 |
commit | 84171b2406056349992a3aac82c6ba8b21792764 (patch) | |
tree | 8d7922c44bffbfbeb80c812b01719578940acffa /display.js | |
parent | 54ee82f004a85d99a742108bf63922be5c3f0800 (diff) |
Use WheelEvent instead of MouseWheelEvent
MouseWheelEvent is deprecated and not working in Firefox.
Diffstat (limited to 'display.js')
-rw-r--r-- | display.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } } |