Feature request: optionally disable on desktop
See original GitHub issueIt 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:
Vue.use(Vue2TouchEvents, {
disableSwipeOnDesktop: true
})
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
[Feature Request] Option to optionally disable app drawer
This is a feature request for adding an option to disable the app drawer. Like this, it would have the app using only...
Read more >4 Ways To Enable/Disable Optional Windows Features
To disable a feature, un-check the checkbox beside the component. 4 Ways To Enable/Disable Optional Windows Features 5. 2- How to turn Windows ......
Read more >Disable Optional Features - Windows 10 - Microsoft Community
How to Disable Windows 10 optional features via registry or group policy,We ... to find a community that will offer the support you...
Read more >What Windows 10's “Optional Features” Do, and How to Turn ...
Windows 10 comes with a number of “optional” features that you can ... or disabled, Windows may require you reboot your computer for...
Read more >Using Feature Flags for A/B Testing & Optionally Enable ...
Using Feature Flags for A/B Testing & Optionally Enable/Disable ... Its job is to make regular requests to the server in order to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure, but probably rename to be
{disableSwipeNoTouch: true}
or similar to avoid misconceptions. An implementation based on your suggestion is fine - however other implementations which explicitly checked for desktop would also be possible. My comment was about the aim, which should be to disable swipe when touch is not present, rather than on desktop per-se.Could you change it or send a PR ? Thank you