@colijnit/homedecorator 256.1.32 → 256.1.33
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/bundles/colijnit-homedecorator.umd.js +7 -8
- package/bundles/colijnit-homedecorator.umd.js.map +1 -1
- package/esm2015/app/core/utils/relative-position.utils.js +5 -4
- package/esm2015/app/plugins/core3d/service/scene-event.service.js +4 -6
- package/fesm2015/colijnit-homedecorator.js +7 -8
- package/fesm2015/colijnit-homedecorator.js.map +1 -1
- package/package.json +1 -1
|
@@ -1749,9 +1749,10 @@
|
|
|
1749
1749
|
};
|
|
1750
1750
|
RelativePositionUtils.GetClientTouchPosition = function (event, canvas) {
|
|
1751
1751
|
var touch = event.touches[0];
|
|
1752
|
-
var
|
|
1753
|
-
var
|
|
1754
|
-
|
|
1752
|
+
var rect = canvas.getBoundingClientRect();
|
|
1753
|
+
var xOffset = touch.clientX - rect.left;
|
|
1754
|
+
var yOffset = touch.clientY - rect.top;
|
|
1755
|
+
return new THREE__namespace.Vector2(xOffset, yOffset);
|
|
1755
1756
|
};
|
|
1756
1757
|
RelativePositionUtils.GetElementRect = function (element, handleAppOffset) {
|
|
1757
1758
|
var rect;
|
|
@@ -22664,6 +22665,7 @@
|
|
|
22664
22665
|
case SceneEventState.ROTATING:
|
|
22665
22666
|
this._clickDragged();
|
|
22666
22667
|
this._markSceneToUpdate();
|
|
22668
|
+
this._eventService.objectMovingOrRotating.next();
|
|
22667
22669
|
break;
|
|
22668
22670
|
}
|
|
22669
22671
|
}
|
|
@@ -22741,11 +22743,8 @@
|
|
|
22741
22743
|
return this._intersectionService.getIntersections(mouseVector, objects, options);
|
|
22742
22744
|
};
|
|
22743
22745
|
SceneEventService.prototype._setMousePositionFromTouchEvent = function (event) {
|
|
22744
|
-
var
|
|
22745
|
-
|
|
22746
|
-
var canvas = event.target;
|
|
22747
|
-
this._mousePosition.set(touch.pageX - (canvas ? canvas.offsetLeft : 0), touch.pageY - (canvas ? canvas.offsetTop : 0));
|
|
22748
|
-
}
|
|
22746
|
+
var canvas = this._element;
|
|
22747
|
+
this._mousePosition = RelativePositionUtils.GetClientTouchPosition(event, canvas);
|
|
22749
22748
|
};
|
|
22750
22749
|
SceneEventService.prototype._touchStartEvent = function (event) {
|
|
22751
22750
|
var _this = this;
|