You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The guesture event bind to div#child. the child dom only in the parent dom moving. and I don't want to set the bounds for div#child.
But I want stop the dragging when the pointer moved out of the div#parent.
The state object looks not include the pointer offset information. the offset: [x, y] not the truly the DOM offset values.
Because I don't know the div#parent width and height,
I don't know the div#child is scaled draged.
I only want to stop the dragging when the finger or pointer out of div#parent.
Who can give me a good idea.
Thanks very much!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I have a problem on draging event.
I have a simple dom tree:
The guesture event bind to div#child. the child dom only in the parent dom moving. and I don't want to set the bounds for div#child.
But I want stop the dragging when the pointer moved out of the div#parent.
The state object looks not include the pointer offset information. the offset: [x, y] not the truly the DOM offset values.
Because I don't know the div#parent width and height,
I don't know the div#child is scaled draged.
I only want to stop the dragging when the finger or pointer out of div#parent.
Who can give me a good idea.
Thanks very much!
Beta Was this translation helpful? Give feedback.
All reactions