@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.
@@ -27936,9 +27936,6 @@ var ItemSlot = /*#__PURE__*/React__default.memo( /*#__PURE__*/mobxReactLite.obse
27936
27936
  var _useState4 = React.useState([]),
27937
27937
  contextActions = _useState4[0],
27938
27938
  setContextActions = _useState4[1];
27939
- var _useState5 = React.useState(false),
27940
- isDragStarted = _useState5[0],
27941
- setIsDragStarted = _useState5[1];
27942
27939
  React.useEffect(function () {
27943
27940
  setDragState(function (prev) {
27944
27941
  return _extends({}, prev, {
@@ -28009,7 +28006,6 @@ var ItemSlot = /*#__PURE__*/React__default.memo( /*#__PURE__*/mobxReactLite.obse
28009
28006
  };
28010
28007
  var onDraggableStop = function onDraggableStop(e, data) {
28011
28008
  setDraggingItem(null);
28012
- setIsDragStarted(false);
28013
28009
  var target = e.target;
28014
28010
  if (!target) return;
28015
28011
  if (target != null && target.id.includes('shortcutSetter') && setItemShortcut && item) {
@@ -28076,9 +28072,9 @@ var ItemSlot = /*#__PURE__*/React__default.memo( /*#__PURE__*/mobxReactLite.obse
28076
28072
  });
28077
28073
  }
28078
28074
  }, 50);
28079
- } else if (item && !isDragStarted) {
28075
+ } else if (item) {
28080
28076
  var isTouch = false;
28081
- if (!isContextMenuDisabled && e.type === 'touchend' && !isSelectingShortcut && !dragState.wasDragged) {
28077
+ if (!isContextMenuDisabled && e.type === 'touchend' && !isSelectingShortcut) {
28082
28078
  isTouch = true;
28083
28079
  setTooltipState(function (prev) {
28084
28080
  return _extends({}, prev, {
@@ -28111,7 +28107,6 @@ var ItemSlot = /*#__PURE__*/React__default.memo( /*#__PURE__*/mobxReactLite.obse
28111
28107
  if (!item || isSelectingShortcut) {
28112
28108
  return;
28113
28109
  }
28114
- setIsDragStarted(true);
28115
28110
  if (onDragStart && containerType) {
28116
28111
  onDragStart(item, slotIndex, containerType);
28117
28112
  }