@homebound/beam 2.413.1 → 2.413.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.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -18106,12 +18106,11 @@ function DnDGrid(props) {
|
|
|
18106
18106
|
(e) => {
|
|
18107
18107
|
if (!reorderViaKeyboard.current && dragEl.current && gridEl.current) {
|
|
18108
18108
|
initReorder();
|
|
18109
|
-
const gridRect = gridEl.current.getBoundingClientRect();
|
|
18110
18109
|
const rect = dragEl.current.getBoundingClientRect();
|
|
18111
18110
|
const clientX = "clientX" in e ? e.clientX : e.touches[0].clientX;
|
|
18112
18111
|
const clientY = "clientY" in e ? e.clientY : e.touches[0].clientY;
|
|
18113
|
-
const top = rect.top
|
|
18114
|
-
const left = rect.left
|
|
18112
|
+
const top = rect.top;
|
|
18113
|
+
const left = rect.left;
|
|
18115
18114
|
transformFrom.current = { x: clientX - left, y: clientY - top };
|
|
18116
18115
|
cloneEl.current = dragEl.current.cloneNode();
|
|
18117
18116
|
cloneEl.current?.setAttribute(
|