paper-button icon indicating copy to clipboard operation
paper-button copied to clipboard

paper-button throws violation warning message

Open yveslange opened this issue 8 years ago • 1 comments

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

  • [x] Chrome
  • [ ] Firefox
  • [ ] Safari 9
  • [ ] Safari 8
  • [ ] Safari 7
  • [ ] Edge
  • [ ] IE 11
  • [ ] IE 10

yveslange avatar Oct 18 '17 11:10 yveslange

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

keanulee avatar Oct 18 '17 21:10 keanulee