We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b800217 commit 4d7c4deCopy full SHA for 4d7c4de
1 file changed
src/lasso-manager/index.js
@@ -101,7 +101,7 @@ const createLasso = (
101
Math.random().toString(36).substring(2, 5) +
102
Math.random().toString(36).substring(2, 5);
103
initiator.id = `lasso-initiator-${id}`;
104
- initiator.style.position = 'absolute';
+ initiator.style.position = 'fixed';
105
initiator.style.display = 'flex';
106
initiator.style.justifyContent = 'center';
107
initiator.style.alignItems = 'center';
@@ -125,10 +125,7 @@ const createLasso = (
125
const getMousePosition = (event) => {
126
const { left, top } = element.getBoundingClientRect();
127
128
- return [
129
- event.clientX - left,
130
- event.clientY - top,
131
- ];
+ return [event.clientX - left, event.clientY - top];
132
};
133
134
window.addEventListener('mouseup', mouseUpHandler);
0 commit comments