@dreamworld/dw-ripple 3.1.4 → 3.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dw-ripple.js +2 -2
  2. package/package.json +1 -1
package/dw-ripple.js CHANGED
@@ -72,7 +72,7 @@ export class DwRipple extends Ripple {
72
72
  }
73
73
 
74
74
  parent.addEventListener("mousedown", this.__onMouseDown);
75
- parent.addEventListener("touchstart", this.__onTouchStart);
75
+ parent.addEventListener("touchstart", this.__onTouchStart, { passive: true });
76
76
  }
77
77
 
78
78
  __onMouseDown(e) {
@@ -118,7 +118,7 @@ export class DwRipple extends Ripple {
118
118
  }
119
119
 
120
120
  parent.removeEventListener("mousedown", this.__onMouseDown);
121
- parent.removeEventListener("touchstart", this.__onTouchStart);
121
+ parent.removeEventListener("touchstart", this.__onTouchStart, { passive: true });
122
122
  }
123
123
 
124
124
  window.removeEventListener("touchend", this.__onTouchEnd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamworld/dw-ripple",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "Ripple element created as child-class of [`mwc-ripple`] (https://github.com/material-components/material-components-web-components/tree/master/packages/ripple)",
5
5
  "main": "dw-ripple.js",
6
6
  "type": "module",