minecraft-inventory 0.1.32 → 0.1.33

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": "minecraft-inventory",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "release": {
@@ -330,7 +330,7 @@ export function InventoryOverlay({
330
330
  lineHeight: 1,
331
331
  }}
332
332
  >
333
- INV 0.1.32
333
+ INV 0.1.33
334
334
  </a>
335
335
  )}
336
336
 
@@ -229,16 +229,13 @@ export function Slot({
229
229
  const handleWheel = useCallback(
230
230
  (e: WheelEvent) => {
231
231
  if (isMobile || disabled) return
232
+ if (onClickOverride) return // JEI slots: let parent handle wheel for pagination
232
233
  if (!item && !heldItem) return
233
234
  e.preventDefault()
234
- if (onClickOverride) {
235
- onClickOverride('right', 'normal')
236
- } else {
237
- if (e.deltaY < 0 && item) {
238
- sendAction({ type: 'click', slotIndex: index, button: 'right', mode: 'normal' })
239
- } else if (e.deltaY > 0 && heldItem) {
240
- sendAction({ type: 'click', slotIndex: index, button: 'right', mode: 'normal' })
241
- }
235
+ if (e.deltaY < 0 && item) {
236
+ sendAction({ type: 'click', slotIndex: index, button: 'right', mode: 'normal' })
237
+ } else if (e.deltaY > 0 && heldItem) {
238
+ sendAction({ type: 'click', slotIndex: index, button: 'right', mode: 'normal' })
242
239
  }
243
240
  },
244
241
  [isMobile, disabled, item, heldItem, sendAction, index, onClickOverride],