@expofp/renderer 2.1.1 → 2.1.2
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.js +11 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4785,6 +4785,7 @@ class CameraController extends CameraControls {
|
|
|
4785
4785
|
*/
|
|
4786
4786
|
constructor(camera) {
|
|
4787
4787
|
super(camera);
|
|
4788
|
+
__publicField(this, "touchCancelListener");
|
|
4788
4789
|
this.dollyToCursor = true;
|
|
4789
4790
|
this.draggingSmoothTime = 0;
|
|
4790
4791
|
void this.rotatePolarTo(0, false);
|
|
@@ -4799,6 +4800,7 @@ class CameraController extends CameraControls {
|
|
|
4799
4800
|
two: CameraController.ACTION.NONE,
|
|
4800
4801
|
three: CameraController.ACTION.NONE
|
|
4801
4802
|
};
|
|
4803
|
+
this.touchCancelListener = () => this.cancel();
|
|
4802
4804
|
}
|
|
4803
4805
|
update(delta) {
|
|
4804
4806
|
const needsUpdate = super.update(delta);
|
|
@@ -4811,6 +4813,15 @@ class CameraController extends CameraControls {
|
|
|
4811
4813
|
}
|
|
4812
4814
|
return needsUpdate;
|
|
4813
4815
|
}
|
|
4816
|
+
connect(domElement) {
|
|
4817
|
+
super.connect(domElement);
|
|
4818
|
+
domElement.addEventListener("touchcancel", this.touchCancelListener);
|
|
4819
|
+
}
|
|
4820
|
+
disconnect() {
|
|
4821
|
+
var _a2;
|
|
4822
|
+
(_a2 = this._domElement) == null ? void 0 : _a2.removeEventListener("touchcancel", this.touchCancelListener);
|
|
4823
|
+
super.disconnect();
|
|
4824
|
+
}
|
|
4814
4825
|
}
|
|
4815
4826
|
class CameraSystem {
|
|
4816
4827
|
/**
|