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

fixing nested touch dragging #175

Merged
merged 8 commits into from Nov 16, 2017
Merged

Conversation

alexreardon
Copy link
Collaborator

Fixes #173

@@ -216,6 +222,11 @@ export const makeSelector = (): Selector => {
};
}

// a lift is in progress - do not let anything start a lift
Copy link
Collaborator Author

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

// browser interactions as possible.
// event.preventDefault() in an onTouchStart blocks almost
// every other event including force press
event.stopPropagation();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the fix?

Copy link
Collaborator Author

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

Copy link
Contributor

@jaredcrowe jaredcrowe left a 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!

@alexreardon alexreardon changed the base branch from improved-drag-flow to master November 16, 2017 02:43
@alexreardon alexreardon merged commit 596f6bd into master Nov 16, 2017
@alexreardon alexreardon deleted the fixing-nested-draggables-for-touch branch November 16, 2017 02:48
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

Successfully merging this pull request may close these issues.

None yet

2 participants