UnderminersTeam / UndertaleModTool

The most complete tool for modding, decompiling and unpacking Undertale (and other GameMaker games!)
GNU General Public License v3.0
1.19k stars 233 forks source link

The room editor preview scrolls to left top corner on object deletion. #1953

Open VladiStep opened 1 month ago

VladiStep commented 1 month ago

Describe the bug

When you open a big room (or zoom in enough) in GMS 2+ game, it scrolls (jumps) to the top left corner of the room on layer object deletion.

https://github.com/user-attachments/assets/eb1ade2d-71ef-4162-a31d-37cbf2510145

Reproducing steps

  1. Open the room editor.
  2. Make sure the preview is scrollable (zoom in).
  3. Delete any room object on a layer.

Setup Details

UTMT version - https://github.com/UnderminersTeam/UndertaleModTool/commit/caf04126f273b57bb2200b8739bb9d57e25d8f92.