Skip to content

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

Open
@Cringe-TGM-2

Description

@Cringe-TGM-2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions