TurboWarp / scratch-gui

TurboWarp GUI and addons
https://turbowarp.org/
GNU General Public License v3.0
108 stars 175 forks source link

several elements in costume editor become offset after resizing stage #965

Open lemmeviewthecode opened 1 week ago

lemmeviewthecode commented 1 week ago

Expected Behavior

After resizing the stage, everything should act just as it was without resizing in the costume editor, just with an increased aspect ratio.

Actual Behavior

collision detection is slightly off depending on how far to the left or right you are in the costume editor. this also affects the pen tool, which is the easiest way to find this bug. (might possibly be caused by an incorrect multiplication in the code, but i'm not that much of a programmer, so I'm not sure.)

here's a video of the bug in effect: Screen recording 2024-11-04 3.19.02 PM.webm

Steps to Reproduce

pen method

  1. switch to the pen tool

  2. observe. the pen will be offset from the cursor.

scaling method

  1. draw a vector costume with multiple shapes on each side of the screen. preferably to the point where they're either off-screen or nearly off-screen. alternatively, simply upload this SVG: costume1 (1)

  2. resize the stage to "widescreen" (640x360) or larger.

  3. attempt to scale the shapes either vertically or horizontally, or try to use the reshape tool on them. you'll notice that your clicks are somewhat offset on the horizontal axis. if you used the SVG provided, try adjusting some points on the stars next to "P1".

Operating System and Browser

Google ChromeOS Version 129.0.6668.112 (Official Build) (64-bit), Chrome 129 on Chrome OS 14541

GarboMuffin commented 1 week ago

Show us something concrete to reproduce this, not "eventually, you will come across the same issue."

lemmeviewthecode commented 1 week ago

acknowledged, the issue has been edited with steps to reproduce it, including footage of the bug in action.