@dreamworld/dw-ripple 3.1.0 → 3.1.2-ssr.1

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 +1 -9
  2. package/package.json +2 -1
package/dw-ripple.js CHANGED
@@ -79,25 +79,20 @@ export class DwRipple extends Ripple {
79
79
  }
80
80
 
81
81
  __onMouseDown(e) {
82
- console.debug("__onMouseDown called", e);
83
82
  this._timeoutRippleOnMouseDown = setTimeout(() => {
84
- console.debug("timeoutRippleOnMouseDown");
85
83
  window.addEventListener("mouseup", this.__onMouseUp);
86
84
  this._rippleHander.startPress(e);
87
85
  }, 50);
88
86
  }
89
87
 
90
88
  __onTouchStart(e) {
91
- console.debug("__onTouchStart called", e);
92
89
  this._timeoutRippleOnTouchStart = setTimeout(() => {
93
- console.debug("timeoutRippleOnTouchStart");
94
90
  window.addEventListener("touchend", this.__onTouchEnd);
95
91
  this._rippleHander.startPress(e);
96
92
  }, 50);
97
93
  }
98
94
 
99
95
  __onPointerMove() {
100
- console.debug("__onPointerMove called");
101
96
  if (this._timeoutRippleOnMouseDown) {
102
97
  clearTimeout(this._timeoutRippleOnMouseDown);
103
98
  }
@@ -107,7 +102,6 @@ export class DwRipple extends Ripple {
107
102
  }
108
103
 
109
104
  __onTouchMove() {
110
- console.debug("__onTouchMove called");
111
105
  if (this._timeoutRippleOnTouchStart) {
112
106
  clearTimeout(this._timeoutRippleOnTouchStart);
113
107
  }
@@ -117,13 +111,11 @@ export class DwRipple extends Ripple {
117
111
  }
118
112
 
119
113
  __onMouseUp() {
120
- console.debug("__onMouseUp called");
121
114
  window.removeEventListener("mouseup", this.__onMouseUp);
122
115
  this._rippleHander.endPress();
123
116
  }
124
117
 
125
118
  __onTouchEnd() {
126
- console.debug("__onTouchEnd called");
127
119
  window.removeEventListener("touchend", this.__onTouchEnd);
128
120
  this._rippleHander.endPress();
129
121
  }
@@ -159,4 +151,4 @@ export class DwRipple extends Ripple {
159
151
  }
160
152
  }
161
153
 
162
- window.customElements.define("dw-ripple", DwRipple);
154
+ customElements.define("dw-ripple", DwRipple);
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@dreamworld/dw-ripple",
3
- "version": "3.1.0",
3
+ "version": "3.1.2-ssr.1",
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
+ "type": "module",
6
7
  "scripts": {
7
8
  "start": "wds --node-resolve --app-index demo/index.html --open --watch",
8
9
  "test": "echo \"Error: no test specified\" && exit 1"