-
Notifications
You must be signed in to change notification settings - Fork 51
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
Feature request: optionally disable on desktop #91
Comments
If this is done, I'd suggest disabling if touch is not present - I have a laptop with touch which I use. For a while many touch enabled pages didn't work on desktop because of the incorrect assumption that touch does not exist on desktop. It is best to decide these things on features present, rather than make assumptions. |
@euan-smith what does |
true on FF and Chrome |
thanks, no incorrect assumptions with that logic then |
Sure, but probably rename to be |
agreed, good suggestion |
ah... So... how to do that? |
exit early in your binding if that plugin config option is set and |
Could you change it or send a PR ? Thank you |
It would be useful if we could optionally disable swipe actions on desktop, so that they only work if the user has a touch device.
The check would be something like:
isUsingTouchDevice: window && window.matchMedia('(any-pointer: coarse)').matches
and then exposed to users as:
The text was updated successfully, but these errors were encountered: