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.mjs
CHANGED
|
@@ -737,14 +737,14 @@ class Input extends EventEmitter {
|
|
|
737
737
|
this.target.removeEventListener("pointerdown", this.onPointerDown);
|
|
738
738
|
this.target.removeEventListener("pointerleave", this.onPointerOver);
|
|
739
739
|
this.target.removeEventListener("pointerover", this.onPointerOver);
|
|
740
|
-
this.target.
|
|
741
|
-
this.target.
|
|
740
|
+
this.target.removeEventListener("pointermove", this.onPointerMove);
|
|
741
|
+
this.target.removeEventListener("pointerup", this.onPointerUp);
|
|
742
742
|
} else {
|
|
743
743
|
this.target.removeEventListener("mousedown", this.onPointerDown);
|
|
744
744
|
this.target.removeEventListener("mouseout", this.onPointerOver);
|
|
745
745
|
this.target.removeEventListener("mouseover", this.onPointerOver);
|
|
746
|
-
this.target.
|
|
747
|
-
this.target.
|
|
746
|
+
this.target.removeEventListener("mousemove", this.onPointerMove);
|
|
747
|
+
this.target.removeEventListener("mouseup", this.onPointerUp);
|
|
748
748
|
}
|
|
749
749
|
if (SUPPORTS_TOUCH_EVENTS) {
|
|
750
750
|
this.target.removeEventListener("touchstart", this.onPointerDown);
|
|
@@ -772,14 +772,14 @@ class Input extends EventEmitter {
|
|
|
772
772
|
this.target.addEventListener("pointerdown", this.onPointerDown);
|
|
773
773
|
this.target.addEventListener("pointerleave", this.onPointerOver);
|
|
774
774
|
this.target.addEventListener("pointerover", this.onPointerOver);
|
|
775
|
-
this.target.
|
|
776
|
-
this.target.
|
|
775
|
+
this.target.addEventListener("pointermove", this.onPointerMove);
|
|
776
|
+
this.target.addEventListener("pointerup", this.onPointerUp);
|
|
777
777
|
} else {
|
|
778
778
|
this.target.addEventListener("mousedown", this.onPointerDown);
|
|
779
779
|
this.target.addEventListener("mouseout", this.onPointerOver);
|
|
780
780
|
this.target.addEventListener("mouseover", this.onPointerOver);
|
|
781
|
-
this.target.
|
|
782
|
-
this.target.
|
|
781
|
+
this.target.addEventListener("mousemove", this.onPointerMove);
|
|
782
|
+
this.target.addEventListener("mouseup", this.onPointerUp);
|
|
783
783
|
}
|
|
784
784
|
if (SUPPORTS_TOUCH_EVENTS) {
|
|
785
785
|
this.target.addEventListener("touchstart", this.onPointerDown);
|