react-dragline icon indicating copy to clipboard operation
react-dragline copied to clipboard

用onStop获取offsetTop和offsetLeft的时候有问题

Open duchaolin opened this issue 4 years ago • 0 comments

用onStop获取offsetTop和offsetLeft的时候有问题,感觉是鼠标停留位置的offsetTop和offsetLeft,而不是子元素的,比如应该是offsetTop:0,offsetLeft:0d的时候,如果鼠标拖拽再往左移,就会出现混乱了,此时onStop事件里面的e.target就是鼠标停留的元素,而不是当前的子元素

duchaolin avatar Jul 01 '21 06:07 duchaolin