diff --git a/src/dom/DomEvent.js b/src/dom/DomEvent.js index 82be08975..eb5ce82df 100644 --- a/src/dom/DomEvent.js +++ b/src/dom/DomEvent.js @@ -264,11 +264,10 @@ export function getMousePosition(e, container) { // @function getWheelPxFactor(): Number // Gets the wheel pixel factor based on the devicePixelRatio export function getWheelPxFactor() { - // We need double the scroll pixels (see #7403 and #4538) for all Browsers - // except OSX (Mac) -> 3x, Chrome running on Linux 1x + // We need double the scroll pixels (see #8859, #7403 and #4538) for all Browsers + // except OSX (Mac) -> 3x const ratio = window.devicePixelRatio; - return Browser.linux && Browser.chrome ? ratio : - Browser.mac ? ratio * 3 : + return Browser.mac ? ratio * 3 : ratio > 0 ? 2 * ratio : 1; }