@rpg-engine/long-bow 0.7.60 → 0.7.62
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 +2 -2
- 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 +2 -2
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Item/Inventory/ItemContainer.tsx +4 -0
- package/src/components/Item/Inventory/hooks/useItemSlotDragAndDrop.ts +6 -1
package/package.json
CHANGED
|
@@ -279,6 +279,10 @@ interface IItemsContainerProps {
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
const ItemsContainer = styled.div<IItemsContainerProps>`
|
|
282
|
+
* {
|
|
283
|
+
border: 1px solid red;
|
|
284
|
+
}
|
|
285
|
+
|
|
282
286
|
display: flex;
|
|
283
287
|
justify-content: ${({ isFullScreen }) =>
|
|
284
288
|
isFullScreen ? 'flex-start' : 'center'};
|
|
@@ -178,7 +178,12 @@ export const useItemSlotDragAndDrop = ({
|
|
|
178
178
|
}, 50);
|
|
179
179
|
} else if (item) {
|
|
180
180
|
const isTouch = e.type === 'touchend';
|
|
181
|
-
if (
|
|
181
|
+
if (
|
|
182
|
+
!isContextMenuDisabled &&
|
|
183
|
+
isTouch &&
|
|
184
|
+
!isSelectingShortcut &&
|
|
185
|
+
!draggingItem
|
|
186
|
+
) {
|
|
182
187
|
setTooltipState(prev => ({ ...prev, mobileVisible: true }));
|
|
183
188
|
} else if (!isContextMenuDisabled && !isSelectingShortcut && !isTouch) {
|
|
184
189
|
const event = e as MouseEvent;
|