@rpg-engine/long-bow 0.7.68 → 0.7.71

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.7.68",
3
+ "version": "0.7.71",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -87,6 +87,7 @@ export const ItemContainer: React.FC<IItemContainerProps> = ({
87
87
  onOutsideDrop,
88
88
  checkIfItemCanBeMoved,
89
89
  initialPosition,
90
+ checkIfItemShouldDragEnd,
90
91
  scale,
91
92
  shortcuts,
92
93
  setItemShortcut,
@@ -144,7 +145,6 @@ export const ItemContainer: React.FC<IItemContainerProps> = ({
144
145
  }, [handleMouseMove, onItemDragStart, stopScrolling]);
145
146
 
146
147
  const onDragStart: onDragStart = (item, slotIndex, itemContainerType) => {
147
- console.log('DRAG START');
148
148
  if (onItemDragStart) {
149
149
  onItemDragStart(item, slotIndex, itemContainerType);
150
150
  }
@@ -153,7 +153,6 @@ export const ItemContainer: React.FC<IItemContainerProps> = ({
153
153
  };
154
154
 
155
155
  const onDragEnd: onDragEnd = quantity => {
156
- console.log('DRAG END');
157
156
  if (onItemDragEnd) {
158
157
  onItemDragEnd(quantity);
159
158
  }
@@ -190,6 +189,7 @@ export const ItemContainer: React.FC<IItemContainerProps> = ({
190
189
  onDragEnd={onDragEnd}
191
190
  dragScale={scale}
192
191
  checkIfItemCanBeMoved={checkIfItemCanBeMoved}
192
+ checkIfItemShouldDragEnd={checkIfItemShouldDragEnd}
193
193
  openQuantitySelector={(maxQuantity, callback) => {
194
194
  setQuantitySelect({
195
195
  isOpen: true,