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

Is there a way to temporarily disable a Drop popup? #147

Open
josephrocca opened this issue Apr 30, 2016 · 1 comment
Open

Is there a way to temporarily disable a Drop popup? #147

josephrocca opened this issue Apr 30, 2016 · 1 comment

Comments

@josephrocca
Copy link

In trying to work around issue #146 (touch screen users can't scroll without triggering popups) I've got the following plan: If touchstart event fires, disable all Drop popups. On release (touchend), check if the disance from the original touchstart is small. If it is, I'll count it as a click and trigger the drop (if any) below their finger. If it is large, it was a "scroll" event, so no drops get triggered.

In both cases, I disable all Drops at touchstart and enable them all after processing touchend as described above.

So, is there a way to disable the Drop popups temporarily? I imagine this would involve un-attaching the event listeners, but I'm not sure what Drop is doing in the background.

Thanks

@josephrocca
Copy link
Author

For others with similar issues, I explained how I got around it in #146

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

1 participant