@rpg-engine/long-bow 0.3.37 → 0.3.38
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/long-bow.cjs.development.js +5 -3
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +5 -3
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Item/Inventory/ItemSlot.tsx +8 -3
package/dist/long-bow.esm.js
CHANGED
|
@@ -33851,9 +33851,11 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
|
|
|
33851
33851
|
onDragStart(item, slotIndex, containerType);
|
|
33852
33852
|
}
|
|
33853
33853
|
},
|
|
33854
|
-
onDrag: function onDrag() {
|
|
33855
|
-
|
|
33856
|
-
|
|
33854
|
+
onDrag: function onDrag(_e, data) {
|
|
33855
|
+
if (Math.abs(data.x - dragPosition.x) > 5 || Math.abs(data.y - dragPosition.y) > 5) {
|
|
33856
|
+
setWasDragged(true);
|
|
33857
|
+
setIsFocused(true);
|
|
33858
|
+
}
|
|
33857
33859
|
},
|
|
33858
33860
|
position: dragPosition,
|
|
33859
33861
|
cancel: ".empty-slot"
|