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.

DBW: use touch-action instead of restricting movement in code

See original GitHub issue

CSS touch-action is a more performant way to restrict touch movement of a region.

https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action

We can probably use the document level event listener gatherer for this.

http://jsbin.com/qibakekiri/edit?html,output

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ebidelcommented, Dec 14, 2016

We changed it to be all event listeners on the page. The gatherer collects all listeners within body and window/document: https://github.com/GoogleChrome/lighthouse/blob/master/lighthouse-core/gather/gatherers/dobetterweb/all-event-listeners.js#L132. Some of the code comments need to be updated.

0reactions
paulirishcommented, Mar 8, 2018

Could we boil this down to: If a listener on an element calls preventDefault, but doesn’t have a touch-action set, issue a warning?

Seems about right. Looks excellent for emitting a violation into the console. Good for devtools and LH can absorb that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Touch Actions - Appium
MultiTouch objects are collections of TouchActions. MultiTouch gestures only have two methods, add , and perform . add is used to add another...
Read more >
How to Use Touch Actions in Appium: Swipe Tap Touch
How to Use Touch Actions in Appium such as swipe, tap, press, multi-touch, double tap. I showed the examples and shared a demo...
Read more >
Manual talk:Interface/Sidebar - MediaWiki
You can change the content of the sidebar with this code and restrict the modifications to anonymous users. --WIImaniac 22:27, 1 March 2008...
Read more >
Untitled
#G&g Nek cattelan, Desplante de muros que es, Kallarackal kottayam phone number, Udp port 55777, Ate voce voltar letra, Bouvesse-quirieu code postal 38390, ......
Read more >
AU2007101053B4 - Multimedia communication device with touch ...
100041 In using a mouse instrument, the movement of the input pointer on a display ... system operates to execute computer code and...
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