-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fixing nested touch dragging #175
Conversation
@@ -216,6 +222,11 @@ export const makeSelector = (): Selector => { | |||
}; | |||
} | |||
|
|||
// a lift is in progress - do not let anything start a lift |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unrelated but I thought of adding it @jaredcrowe as it is a bit safer. It does cause another render in the lift cycle which is lame - but I think it is safest to do this
edb6d1e
to
719a7ce
Compare
// browser interactions as possible. | ||
// event.preventDefault() in an onTouchStart blocks almost | ||
// every other event including force press | ||
event.stopPropagation(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the fix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep - it stops the event bubbling up.
it is super important that we do not call prevent default here - but stopPropogation is fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, works on my android!
Fixes #173