@@ -85,7 +85,7 @@ return (
8585| :------------ | :---------------:| :---------------:| :-----|
8686| onDrag | func | event, gestureState | called every frame component is moved |
8787| onShortPressRelease | func | event | called when a press is released that isn't a long press or drag |
88- | onDragRelease | func | event, gestureState | called when a drag is released |
88+ | onDragRelease | func | event, gestureState, bounds | called when a drag is released |
8989| onLongPress | func | event | called when a long press is started |
9090| onPressIn | func | event | called when a press is started |
9191| onPressOut | func | event | called when a press is stopped, or the component is dragged |
@@ -119,12 +119,18 @@ return (
119119| vy | current velocity of the gesture |
120120| numberActiveTouches | Number of touches currently on screen |
121121| gestureState | called at the end of interaction, regardless if press or drag |
122-
122+ #### bounds
123+ | Argument | Description |
124+ | :------------ | :---------------|
125+ | left | as x at the top left corner |
126+ | top | as y at the top left corner |
127+ | right | as x at the bottom right corner |
128+ | bottom | as y at the bottom right corner |
123129## Methods (not supported above V2.0.0)
124130| Method | Params | Description |
125131| :------------ | :---------------:| :-----|
126132| reversePosition | --- | ** use onReverse callback instead.** manually reset Draggable to start position |
127- | getPosition| --- | ** use onDragRelease callback instead.** get the value of pageX, pageY |
133+ | getPosition| --- | ** use onDragRelease callback instead.** get the accurate coordinates x,y from the bounds |
128134
129135# What's next?
130136
0 commit comments