react-native-draggable-grid icon indicating copy to clipboard operation
react-native-draggable-grid copied to clipboard

Getting exact position of dragged items

Open brkkyk opened this issue 5 years ago • 5 comments

How can i get exact x,y coordinate positions for dragged items when dragging ended? Why i'm asking this is just because i want to catch when and where user trying to drag item outside of the grid.

brkkyk avatar Jan 05 '20 18:01 brkkyk

I think maybe you want listen onHandMove and get the exact x, y?

SHISME avatar Jan 06 '20 01:01 SHISME

@brkkyk @SHISME https://github.com/brkkyk/react-native-draggable-grid/pull/2/files I have added full activeItem into onRelease event it returns all the item info when you finish release.

unicod3 avatar Jan 06 '20 18:01 unicod3

对,需要一个onDragging的回调获取item的位置

wheelswang avatar Apr 26 '20 03:04 wheelswang

对,需要一个onDragging的回调获取item的位置

好的,我周末再加下

SHISME avatar Apr 27 '20 02:04 SHISME

@SHISME have you checked the pull request I have sent?

unicod3 avatar Apr 30 '20 09:04 unicod3