typst / webapp-issues

Issue tracker for Typst's web app.
https://typst.app
12 stars 0 forks source link

Cannot drag first hard line of selected text after wraps or linebreak #442

Open MDLC01 opened 1 week ago

MDLC01 commented 1 week ago

Description

This one is hard to explain. I call hard line a line in the source code, in opposition to soft lines, which are the ones introduced by line wrapping in the user interface.

  1. Select some text across multiple soft lines.
  2. Place the mouse cursor within the editor, after any soft line break that is part of the first hard line, or after the first hard line break (the yellow area in the illustration below).
  3. Start pressing the primary mouse button (left one on most mouses).
  4. Drag your mouse with the primary button pressed.
  5. ❌ The selected text is not dragged.

Illustration: where to place your mouse cursor. Suppose each line in the figure is a line of text. The selected text is exactly the lines displayed in the figure. Place your mouse over the yellow area. image

Reproduction URL

No response

Browsers

Firefox

OS

Windows