react-sync-board 0.7.1 → 0.7.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/esm/index.js
CHANGED
|
@@ -4736,7 +4736,7 @@ var Gesture = function Gesture(_ref6) {
|
|
|
4736
4736
|
|
|
4737
4737
|
var newClientX = (clientX2 + clientX) / 2;
|
|
4738
4738
|
var newClientY = (clientY2 + clientY) / 2;
|
|
4739
|
-
var distance = computeDistance([clientX2, clientY2], [clientX, clientY]); // We update previous position as the new position is the center
|
|
4739
|
+
var distance = computeDistance([clientX2, clientY2], [clientX, clientY]); // We update previous position as the new position is the center between both fingers
|
|
4740
4740
|
|
|
4741
4741
|
Object.assign(stateRef.current, {
|
|
4742
4742
|
pressed: true,
|
|
@@ -4772,6 +4772,7 @@ var Gesture = function Gesture(_ref6) {
|
|
|
4772
4772
|
prevX: clientX,
|
|
4773
4773
|
prevY: clientY,
|
|
4774
4774
|
currentButton: button,
|
|
4775
|
+
pointerDownEvent: event,
|
|
4775
4776
|
target: target,
|
|
4776
4777
|
timeStart: Date.now(),
|
|
4777
4778
|
longTapTimeout: setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
@@ -4884,7 +4885,7 @@ var Gesture = function Gesture(_ref6) {
|
|
|
4884
4885
|
ctrlKey: ctrlKey,
|
|
4885
4886
|
metaKey: metaKey,
|
|
4886
4887
|
target: stateRef.current.target,
|
|
4887
|
-
event:
|
|
4888
|
+
event: stateRef.current.pointerDownEvent
|
|
4888
4889
|
});
|
|
4889
4890
|
}
|
|
4890
4891
|
|