We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getComputedStyle
1 parent 6f67a24 commit f74a68dCopy full SHA for f74a68d
1 file changed
packages/core/useScroll/index.ts
@@ -210,7 +210,7 @@ export function useScroll(
210
|| unrefElement(target as HTMLElement | SVGElement)
211
) as Element
212
213
- const { display, flexDirection, direction } = getComputedStyle(el)
+ const { display, flexDirection, direction } = window.getComputedStyle(el)
214
const directionMultipler = direction === 'rtl' ? -1 : 1
215
216
const scrollLeft = el.scrollLeft
0 commit comments