1
I’m getting a warning on the console of Google Chrome:
[Intervention] Unable to preventDefault Inside Passive EventListener due to target being treated as Passive. See https://www.chromestatus.com/features/5093566007214080 and @ 332526c6e8d3fc1326ad773f97b0a486.js:5029 Dispatch @ 332526c6e8d3fc1326ad773f97b0a486.js:583 r. Handle @ 332526c6e8d3fc1326ad773f97b0a486.js:583
Using the touch-action: none;
in the body
of mine website, this warning no longer appears.
- Would you like to know why the warning? and
- what the
touch-action: none;
does to remove the same?
About the
touch-action:none
vc can read more here: https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action from what I understand it disables all screen Touch functions (pan and zoom).– hugocsl
About the "bug" here is another reference, see from item 2.5 to 2.7 https://dom.spec.whatwg.org/#Defining-Event-interfaces something else, some versions of Firefox vc have to enable Flag
layout.css.touch_action.enabled
reference: https://developer.mozilla.org/en-US/Firefox/Experimental_features– hugocsl