(element: HTMLElement, axis: Axis, value: number, smooth = false)
| 1109 | } |
| 1110 | |
| 1111 | function scrollAlongAxis(element: HTMLElement, axis: Axis, value: number, smooth = false) { |
| 1112 | let behavior: ScrollBehavior | undefined = smooth && !reduceMotion() ? 'smooth' : undefined; |
| 1113 | element.scrollTo(axis === 'y' ? {top: value, behavior} : {left: value, behavior}); |
| 1114 | } |
| 1115 | |
| 1116 | function scrollDetentIntoView( |
| 1117 | scroller: HTMLElement, |
no test coverage detected