Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onDragRelease not return bounds #77

Open
inModo opened this issue Sep 9, 2020 · 1 comment
Open

onDragRelease not return bounds #77

inModo opened this issue Sep 9, 2020 · 1 comment

Comments

@inModo
Copy link

inModo commented Sep 9, 2020

i find this issue on using this library,

so i'm fixed this issue and share to you

fix to :

Draggable.tsx ( 43 lines )

onDragRelease?: (e: GestureResponderEvent, gestureState: PanResponderGestureState }) => void;

to

onDragRelease?: (e: GestureResponderEvent, gestureState: PanResponderGestureState , bounds:{left: number, top: number, right: number, bottom: number}) => void;

and

Draggable.tsx ( 128 lines )

onDragRelease(e, gestureState);

to

onDragRelease(e, gestureState,getBounds());
@Kaltoft
Copy link

Kaltoft commented Oct 9, 2020

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants