@rpg-engine/long-bow 0.7.48 → 0.7.49

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.
@@ -27930,9 +27930,6 @@ var ItemSlot = /*#__PURE__*/React.memo( /*#__PURE__*/observer(function (_ref) {
27930
27930
  var _useState4 = useState([]),
27931
27931
  contextActions = _useState4[0],
27932
27932
  setContextActions = _useState4[1];
27933
- var _useState5 = useState(false),
27934
- isDragStarted = _useState5[0],
27935
- setIsDragStarted = _useState5[1];
27936
27933
  useEffect(function () {
27937
27934
  setDragState(function (prev) {
27938
27935
  return _extends({}, prev, {
@@ -28003,7 +28000,6 @@ var ItemSlot = /*#__PURE__*/React.memo( /*#__PURE__*/observer(function (_ref) {
28003
28000
  };
28004
28001
  var onDraggableStop = function onDraggableStop(e, data) {
28005
28002
  setDraggingItem(null);
28006
- setIsDragStarted(false);
28007
28003
  var target = e.target;
28008
28004
  if (!target) return;
28009
28005
  if (target != null && target.id.includes('shortcutSetter') && setItemShortcut && item) {
@@ -28070,9 +28066,9 @@ var ItemSlot = /*#__PURE__*/React.memo( /*#__PURE__*/observer(function (_ref) {
28070
28066
  });
28071
28067
  }
28072
28068
  }, 50);
28073
- } else if (item && !isDragStarted) {
28069
+ } else if (item) {
28074
28070
  var isTouch = false;
28075
- if (!isContextMenuDisabled && e.type === 'touchend' && !isSelectingShortcut && !dragState.wasDragged) {
28071
+ if (!isContextMenuDisabled && e.type === 'touchend' && !isSelectingShortcut) {
28076
28072
  isTouch = true;
28077
28073
  setTooltipState(function (prev) {
28078
28074
  return _extends({}, prev, {
@@ -28105,7 +28101,6 @@ var ItemSlot = /*#__PURE__*/React.memo( /*#__PURE__*/observer(function (_ref) {
28105
28101
  if (!item || isSelectingShortcut) {
28106
28102
  return;
28107
28103
  }
28108
- setIsDragStarted(true);
28109
28104
  if (onDragStart && containerType) {
28110
28105
  onDragStart(item, slotIndex, containerType);
28111
28106
  }