Alt-drag duplication makes snapping freeze the editor for seconds/minutes/hours #2017
Labels
Bug
Something isn't working
Performance
Speed and efficiency improvements
Rust
Involves Rust programming for the backend
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.
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.The text was updated successfully, but these errors were encountered: