File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11## Next
22
3+ - Fix an issue with the lasso position when the page is scrollable (#50 )
4+
35## v0.18.4
46
57- Fix an issues when programmatically trying to ` select() ` or ` hover() ` non-existing points
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ const createLasso = (
101101 Math . random ( ) . toString ( 36 ) . substring ( 2 , 5 ) +
102102 Math . random ( ) . toString ( 36 ) . substring ( 2 , 5 ) ;
103103 initiator . id = `lasso-initiator-${ id } ` ;
104- initiator . style . position = 'absolute ' ;
104+ initiator . style . position = 'fixed ' ;
105105 initiator . style . display = 'flex' ;
106106 initiator . style . justifyContent = 'center' ;
107107 initiator . style . alignItems = 'center' ;
@@ -125,10 +125,7 @@ const createLasso = (
125125 const getMousePosition = ( event ) => {
126126 const { left, top } = element . getBoundingClientRect ( ) ;
127127
128- return [
129- event . clientX - left + window . scrollX ,
130- event . clientY - top + window . scrollY ,
131- ] ;
128+ return [ event . clientX - left , event . clientY - top ] ;
132129 } ;
133130
134131 window . addEventListener ( 'mouseup' , mouseUpHandler ) ;
You can’t perform that action at this time.
0 commit comments