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

onCanvasDrag change offset in state #58

Closed
outianleiz opened this issue Nov 5, 2019 · 0 comments
Closed

onCanvasDrag change offset in state #58

outianleiz opened this issue Nov 5, 2019 · 0 comments

Comments

@outianleiz
Copy link

Normally offset in state is {x:number, y:number}. However, after I dragged the canvas. the offset will set to be like
offset:{
deltaX: -1
deltaY: 0
lastX: 32
lastY: -78
node: div.sc-bdVaJa.doHFhw.react-draggable.react-draggable-dragged
x: 31
y: -7
}
is this expected? I thought offset will stay like {x:number, y:number}

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