@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
|
@@ -33856,9 +33856,11 @@ var ItemSlot = /*#__PURE__*/mobxReactLite.observer(function (_ref) {
|
|
|
33856
33856
|
onDragStart(item, slotIndex, containerType);
|
|
33857
33857
|
}
|
|
33858
33858
|
},
|
|
33859
|
-
onDrag: function onDrag() {
|
|
33860
|
-
|
|
33861
|
-
|
|
33859
|
+
onDrag: function onDrag(_e, data) {
|
|
33860
|
+
if (Math.abs(data.x - dragPosition.x) > 5 || Math.abs(data.y - dragPosition.y) > 5) {
|
|
33861
|
+
setWasDragged(true);
|
|
33862
|
+
setIsFocused(true);
|
|
33863
|
+
}
|
|
33862
33864
|
},
|
|
33863
33865
|
position: dragPosition,
|
|
33864
33866
|
cancel: ".empty-slot"
|