Fix scrolling mode

This commit is contained in:
wvffle 2022-07-24 22:20:08 +00:00 committed by Georg Krause
parent fa6a1575e2
commit 63fbf286a2
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ const dragClassHandler = (index: number) => draggedItem.value && hoveredIndex.va
const scrollDirection = ref()
const containerSize = reactive({ bottom: 0, top: 0 })
const { x, y: screenY } = useMouse()
const { x, y: screenY } = useMouse({ type: 'client' })
const { element: hoveredElement } = useElementByPoint({ x, y: screenY })
// Find current index and position on both desktop and mobile devices