Skip to content
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

paper-button throws violation warning message #170

Open
1 of 8 tasks
yveslange opened this issue Oct 18, 2017 · 1 comment
Open
1 of 8 tasks

paper-button throws violation warning message #170

yveslange opened this issue Oct 18, 2017 · 1 comment

Comments

@yveslange
Copy link

Description

The paper-button element throws a warning in the console:

gestures.html:435 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

Expected outcome

It should not throw this warning

Live Demo

https://www.webcomponents.org/element/PolymerElements/paper-icon-button

Steps to reproduce

Import and use the paper-button or paper-icon-button

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
@keanulee
Copy link
Contributor

Consider using Polymer.setPassiveTouchGestures(true) to fix this. We can't do this at the element level though, since some apps may use gestureEvent.preventDefault() to prevent scrolling. For more details, see https://github.com/Polymer/polymer/releases/tag/v2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants