rushassets / ultimate-grid-inventory-demos

Repository containg the Ultimate Grid Inventory demos and their issues
https://www.rushassets.com/products/ultimate-grid-inventory
MIT License
2 stars 0 forks source link

Item rollback in wrong rotation outside of grid problem #6

Closed RubensKj closed 1 year ago

RubensKj commented 1 year ago

Describe the bug

It happens when you drag an item to outside a grid and also rotate it, when the item is rollbacked to the grid, it returns in the wrong rotation.

Expected behavior

When drag an item to outside of a grid and rotate, the rollbacked item should stay in the same position.

Actual behavior

The rollbacked item returns in the wrong rotation if the item fits in the new rotation.

How to Reproduce?

Steps to reproduce this behavior:

  1. Drag an item to outside a grid (Don't hover any grids)
  2. Rotate the item
  3. Release the button.

Asset version

1.2.0

Additional information

Video

https://user-images.githubusercontent.com/36218162/225058063-db14cecf-78b7-4006-9a5c-7df2db2c1970.mp4