Closed faucomte97 closed 1 month ago
Can't drag objects into bin when bin is below grid Private Zenhub Video
I propose the following fix, we should be able to drag elements off the grid and release it into the bin. However, if the element is released off the grid and it's not over the bin, the element should be placed at max x if it's x coordinate is over the max and max y if it's y coordinate is over the max
Describe the bug The Level Editor layout has become wonky. The grid has grown in size so it no longer fits in the window and the bin has moved closer to the centre of the window. Additionally, when moving scenery assets onto the grid, the mouse cursor isn't in line with the grid and where the asset actually ends up - most likely a byproduct of the grid being oversized.
This is a side-effect of #1516. Reverting the code to what it was before that change "fixes" it, although the original issue comes back whereby the grid is cut off. A solution needs to be found to fix both problems.
To Reproduce Steps to reproduce the behaviour:
Expected behaviour The grid should fit within the window and the bin should go back to the bottom-right of the window. Assets that are added to the map should be in line with where the cursor is.
Screenshots![Screenshot from 2023-11-28 13-59-37](https://github.com/ocadotechnology/rapid-router/assets/33633200/cfb1d8c3-6910-445c-a985-f2e00b4077f5)
Desktop (please complete the following information): Probably all (double-check)