three-base 2.0.81 → 2.0.83

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-base",
3
- "version": "2.0.81",
3
+ "version": "2.0.83",
4
4
  "description": "three 3d three-base",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
package/threeLoader.js CHANGED
@@ -73,15 +73,16 @@ class ThreeLoader extends EventDispatcher {
73
73
  videoDom.preload = "auto";
74
74
  videoDom.playsInline = true;
75
75
  videoDom.src = src;
76
+ videoDom.crossOrigin = "anonymous";
76
77
  videoDom.play();
77
78
  const firstOptoin = () => {
78
79
  videoDom.pause();
79
80
  videoDom.play();
80
81
  document.removeEventListener("pointerup", firstOptoin);
81
- document.removeEventListener("ontouchstart", firstOptoin);
82
+ document.removeEventListener("touchstart", firstOptoin);
82
83
  };
83
84
  document.addEventListener("pointerup", firstOptoin);
84
- document.addEventListener("ontouchstart", firstOptoin);
85
+ document.addEventListener("touchstart", firstOptoin);
85
86
  texture = new VideoTexture(videoDom);
86
87
  }
87
88
  else {
package/threeLoader.ts CHANGED
@@ -90,15 +90,16 @@ class ThreeLoader extends EventDispatcher {
90
90
  videoDom.preload = "auto";
91
91
  videoDom.playsInline = true;
92
92
  videoDom.src = src;
93
+ videoDom.crossOrigin = "anonymous";
93
94
  videoDom.play();
94
95
  const firstOptoin = () => {
95
96
  videoDom.pause();
96
97
  videoDom.play();
97
98
  document.removeEventListener("pointerup", firstOptoin);
98
- document.removeEventListener("ontouchstart", firstOptoin);
99
+ document.removeEventListener("touchstart", firstOptoin);
99
100
  }
100
101
  document.addEventListener("pointerup", firstOptoin);
101
- document.addEventListener("ontouchstart", firstOptoin);
102
+ document.addEventListener("touchstart", firstOptoin);
102
103
  texture = new VideoTexture(videoDom);
103
104
  } else {
104
105