Skip to content

Commit

Permalink
Merge patch branch changes to main.
Browse files Browse the repository at this point in the history
  • Loading branch information
necouchman committed Jul 12, 2024
2 parents 9a8a5f3 + 2db8351 commit 6493a23
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions guacamole-common-js/src/main/webapp/modules/Mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,16 @@ Guacamole.Mouse = function Mouse(element) {

}

element.addEventListener('DOMMouseScroll', mousewheel_handler, false);
element.addEventListener('mousewheel', mousewheel_handler, false);
element.addEventListener('wheel', mousewheel_handler, false);
if (window.WheelEvent) {
// All modern browsers support wheel events.
element.addEventListener('wheel', mousewheel_handler, false);
}
else {
// Legacy FireFox wheel events.
element.addEventListener('DOMMouseScroll', mousewheel_handler, false);
// Legacy Chrome/IE/other wheel events.
element.addEventListener('mousewheel', mousewheel_handler, false);
}

/**
* Whether the browser supports CSS3 cursor styling, including hotspot
Expand Down

0 comments on commit 6493a23

Please sign in to comment.