sheet-happens 0.0.46 → 0.0.47
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 +1 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -975,7 +975,6 @@ var useMouse = function useMouse(hitmapRef, selection, knobArea, editMode, editD
|
|
|
975
975
|
columnDrag = _ref$current2.columnDrag,
|
|
976
976
|
rowDrag = _ref$current2.rowDrag,
|
|
977
977
|
draggingKnob = _ref$current2.draggingKnob,
|
|
978
|
-
hitTarget = _ref$current2.hitTarget,
|
|
979
978
|
_ref$current2$cellLay = _ref$current2.cellLayout,
|
|
980
979
|
pixelToColumn = _ref$current2$cellLay.pixelToColumn,
|
|
981
980
|
pixelToRow = _ref$current2$cellLay.pixelToRow,
|
|
@@ -1056,8 +1055,6 @@ var useMouse = function useMouse(hitmapRef, selection, knobArea, editMode, editD
|
|
|
1056
1055
|
setColumnDrag(null);
|
|
1057
1056
|
setRowResize(null);
|
|
1058
1057
|
setRowDrag(null);
|
|
1059
|
-
if (!xy || !hitTarget) return;
|
|
1060
|
-
setHitTarget(null);
|
|
1061
1058
|
}, [getMousePosition, getMouseHit, onChange, onSelectionChange, onKnobAreaChange, onDropTargetChange, onColumnOrderChange, onRowOrderChange, dontChangeSelectionOnOrderChange]);
|
|
1062
1059
|
var onPointerMove = React.useCallback(function (e) {
|
|
1063
1060
|
var _ref$current3 = ref.current,
|
|
@@ -1335,6 +1332,7 @@ var useMouse = function useMouse(hitmapRef, selection, knobArea, editMode, editD
|
|
|
1335
1332
|
if (!hitTarget) return;
|
|
1336
1333
|
var xy = getMousePosition(e);
|
|
1337
1334
|
if (!xy) return;
|
|
1335
|
+
setHitTarget(null);
|
|
1338
1336
|
var previousRect = JSON.stringify(hitTarget.rect);
|
|
1339
1337
|
var currentRect = JSON.stringify((_getMouseHit = getMouseHit(xy)) === null || _getMouseHit === void 0 ? void 0 : _getMouseHit.rect);
|
|
1340
1338
|
|