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/cjs/index.js
CHANGED
|
@@ -4764,7 +4764,7 @@ var Gesture = function Gesture(_ref6) {
|
|
|
4764
4764
|
|
|
4765
4765
|
var newClientX = (clientX2 + clientX) / 2;
|
|
4766
4766
|
var newClientY = (clientY2 + clientY) / 2;
|
|
4767
|
-
var distance = computeDistance([clientX2, clientY2], [clientX, clientY]); // We update previous position as the new position is the center
|
|
4767
|
+
var distance = computeDistance([clientX2, clientY2], [clientX, clientY]); // We update previous position as the new position is the center between both fingers
|
|
4768
4768
|
|
|
4769
4769
|
Object.assign(stateRef.current, {
|
|
4770
4770
|
pressed: true,
|
|
@@ -4800,6 +4800,7 @@ var Gesture = function Gesture(_ref6) {
|
|
|
4800
4800
|
prevX: clientX,
|
|
4801
4801
|
prevY: clientY,
|
|
4802
4802
|
currentButton: button,
|
|
4803
|
+
pointerDownEvent: event,
|
|
4803
4804
|
target: target,
|
|
4804
4805
|
timeStart: Date.now(),
|
|
4805
4806
|
longTapTimeout: setTimeout( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
@@ -4912,7 +4913,7 @@ var Gesture = function Gesture(_ref6) {
|
|
|
4912
4913
|
ctrlKey: ctrlKey,
|
|
4913
4914
|
metaKey: metaKey,
|
|
4914
4915
|
target: stateRef.current.target,
|
|
4915
|
-
event:
|
|
4916
|
+
event: stateRef.current.pointerDownEvent
|
|
4916
4917
|
});
|
|
4917
4918
|
}
|
|
4918
4919
|
|