Skip to content

Commit b800217

Browse files
committed
ignore window.scrollXY as the lasso draws relative to the canvas, not window
1 parent 5229c05 commit b800217

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lasso-manager/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ const createLasso = (
126126
const { left, top } = element.getBoundingClientRect();
127127

128128
return [
129-
event.clientX - left + window.scrollX,
130-
event.clientY - top + window.scrollY,
129+
event.clientX - left,
130+
event.clientY - top,
131131
];
132132
};
133133

0 commit comments

Comments
 (0)