Skip to content

Alt-drag duplication makes snapping freeze the editor for seconds/minutes/forever #2017

Open
@Keavon

Description

@Keavon

Type a bunch of text with the text tool, like a sizable paragraph, across multiple lines. Hold Alt and drag with the Select tool, in order to duplicate the text layer. (I also tested this while holding Shift to constrain it to horizontal or vertical movement when duplicate-dragging, I'm not sure if that part is relevant.) This freezes the editor for many seconds or minutes.

capture

As we can see, this originates in fn snap_drag. That function has a loop for point in candidates that calls fn constrained_snap. The code in here has several more layers of loops.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PerformanceSpeed and efficiency improvements

    Type

    Projects

    Status

    Short-Term

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions