diff --git a/src/handleScroll.ts b/src/handleScroll.ts index 254b141..2d13632 100644 --- a/src/handleScroll.ts +++ b/src/handleScroll.ts @@ -10,6 +10,9 @@ const elementCouldBeVScrolled = (node: HTMLElement): boolean => { const elementCouldBeHScrolled = (node: HTMLElement): boolean => { const styles = window.getComputedStyle(node); + if (node.type === "range") { + return true; + } return ( styles.overflowX !== 'hidden' && // not-not-scrollable !(styles.overflowY === styles.overflowX && styles.overflowX === 'visible') // scrollable