modern-canvas 0.4.54 → 0.4.55
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.
- package/dist/index.cjs +8 -8
- package/dist/index.js +20 -20
- package/dist/index.mjs +8 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -743,14 +743,14 @@ class Input extends EventEmitter {
|
|
|
743
743
|
this.target.removeEventListener("pointerdown", this.onPointerDown);
|
|
744
744
|
this.target.removeEventListener("pointerleave", this.onPointerOver);
|
|
745
745
|
this.target.removeEventListener("pointerover", this.onPointerOver);
|
|
746
|
-
this.target.
|
|
747
|
-
this.target.
|
|
746
|
+
this.target.removeEventListener("pointermove", this.onPointerMove);
|
|
747
|
+
this.target.removeEventListener("pointerup", this.onPointerUp);
|
|
748
748
|
} else {
|
|
749
749
|
this.target.removeEventListener("mousedown", this.onPointerDown);
|
|
750
750
|
this.target.removeEventListener("mouseout", this.onPointerOver);
|
|
751
751
|
this.target.removeEventListener("mouseover", this.onPointerOver);
|
|
752
|
-
this.target.
|
|
753
|
-
this.target.
|
|
752
|
+
this.target.removeEventListener("mousemove", this.onPointerMove);
|
|
753
|
+
this.target.removeEventListener("mouseup", this.onPointerUp);
|
|
754
754
|
}
|
|
755
755
|
if (SUPPORTS_TOUCH_EVENTS) {
|
|
756
756
|
this.target.removeEventListener("touchstart", this.onPointerDown);
|
|
@@ -778,14 +778,14 @@ class Input extends EventEmitter {
|
|
|
778
778
|
this.target.addEventListener("pointerdown", this.onPointerDown);
|
|
779
779
|
this.target.addEventListener("pointerleave", this.onPointerOver);
|
|
780
780
|
this.target.addEventListener("pointerover", this.onPointerOver);
|
|
781
|
-
this.target.
|
|
782
|
-
this.target.
|
|
781
|
+
this.target.addEventListener("pointermove", this.onPointerMove);
|
|
782
|
+
this.target.addEventListener("pointerup", this.onPointerUp);
|
|
783
783
|
} else {
|
|
784
784
|
this.target.addEventListener("mousedown", this.onPointerDown);
|
|
785
785
|
this.target.addEventListener("mouseout", this.onPointerOver);
|
|
786
786
|
this.target.addEventListener("mouseover", this.onPointerOver);
|
|
787
|
-
this.target.
|
|
788
|
-
this.target.
|
|
787
|
+
this.target.addEventListener("mousemove", this.onPointerMove);
|
|
788
|
+
this.target.addEventListener("mouseup", this.onPointerUp);
|
|
789
789
|
}
|
|
790
790
|
if (SUPPORTS_TOUCH_EVENTS) {
|
|
791
791
|
this.target.addEventListener("touchstart", this.onPointerDown);
|