@vectojs/three 0.1.1 → 0.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 +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -590,8 +590,8 @@ var ThreeAdapter = class {
|
|
|
590
590
|
* Dispatches pointer events mapped from UV coordinates [0, 1] to VectoJS entities.
|
|
591
591
|
*/
|
|
592
592
|
dispatchAtUv(type, uv, pointerId, originalEvent) {
|
|
593
|
-
const px = uv.x * this.
|
|
594
|
-
const py = (1 - uv.y) * this.
|
|
593
|
+
const px = uv.x * this.vectoScene.width;
|
|
594
|
+
const py = (1 - uv.y) * this.vectoScene.height;
|
|
595
595
|
this.vectoScene.markDirty();
|
|
596
596
|
const hitEntity = this.vectoScene.findEntityAt(px, py);
|
|
597
597
|
const state = this.activePointers.get(pointerId);
|
package/dist/index.mjs
CHANGED
|
@@ -552,8 +552,8 @@ var ThreeAdapter = class {
|
|
|
552
552
|
* Dispatches pointer events mapped from UV coordinates [0, 1] to VectoJS entities.
|
|
553
553
|
*/
|
|
554
554
|
dispatchAtUv(type, uv, pointerId, originalEvent) {
|
|
555
|
-
const px = uv.x * this.
|
|
556
|
-
const py = (1 - uv.y) * this.
|
|
555
|
+
const px = uv.x * this.vectoScene.width;
|
|
556
|
+
const py = (1 - uv.y) * this.vectoScene.height;
|
|
557
557
|
this.vectoScene.markDirty();
|
|
558
558
|
const hitEntity = this.vectoScene.findEntityAt(px, py);
|
|
559
559
|
const state = this.activePointers.get(pointerId);
|