question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: optionally disable on desktop

See original GitHub issue

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:

Vue.use(Vue2TouchEvents, {
    disableSwipeOnDesktop: true
})

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
euan-smithcommented, May 4, 2021

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.

0reactions
jerrybendycommented, May 4, 2021

Could you change it or send a PR ? Thank you

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found