deathcap / inventory-window

GUI windows for interactively manipulating an inventory
http://deathcap.github.io/inventory-window/
7 stars 2 forks source link

Drag-painting unexpectedly drops 3D cube items #23

Open deathcap opened 10 years ago

deathcap commented 10 years ago

In the demo http://deathcap.github.io/inventory-window/, try picking up an item from the 1st window, then holding the right mouse button down to drop the items over the 3rd window, one at a time.

This works well with the stick item since it has a flat texture, but not so well with the grass block (3D CSS cube, uses https://github.com/deathcap/cube-icon). Multiple items are dropped onto the same slot as you drag over the same slot:

screen shot 2014-06-14 at 3 43 20 pm screen shot 2014-06-14 at 3 43 24 pm screen shot 2014-06-14 at 3 43 31 pm screen shot 2014-06-14 at 3 43 34 pm

it shouldn't drop until the cursor hovers over a different slot, as seen with the stick:

screen shot 2014-06-14 at 3 45 04 pm

This bug makes it cumbersome to craft with blocks (e.g., in voxel-workbench)