1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Remove IE8 support

This commit is contained in:
Bill Thornton 2020-02-25 15:25:35 -05:00
parent 5fb2c8bd82
commit 3fd2a2b59d

View file

@ -574,9 +574,8 @@ define(['browser', 'layoutManager', 'dom', 'focusManager', 'ResizeObserver', 'sc
* @return {Int} * @return {Int}
*/ */
function normalizeWheelDelta(event) { function normalizeWheelDelta(event) {
// wheelDelta needed only for IE8- // JELLYFIN MOD: Only use deltaX for horizontal scroll and remove IE8 support
// JELLYFIN MOD: Only use deltaX for horizontal scroll instead of `event.deltaY || event.deltaX` scrolling.curDelta = o.horizontal ? event.deltaX : event.deltaY;
scrolling.curDelta = ((o.horizontal ? event.deltaX : event.deltaY) || -event.wheelDelta);
// END JELLYFIN MOD // END JELLYFIN MOD
if (transform) { if (transform) {