chenglou / chenglou/pretext

Many weird behaviours with text selection

Open
#151 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
50.3k
Forks
2.7k
Avg merge
2h 40m
Merged PRs (30d)
69

Description

The _Rich Text_ demo have many weird behaviours with text selection when:

1. Triple-clicking
2. Dragging the mouse vertically
3. Shift+Up/Down
4. Resizing the viewport
5. Zooming the viewport

You can try all these 5 actions with the non-pretext paragraph at the top, then with the pretext-enabled paragraph below, and notice the inconsistencies. Also, compare all that to the **pdf.js** demo.

Links:

-
-

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Rich Text demo at chenglou.me/pretext/rich-note/ and reproduce selection using triple-clicking, vertical dragging, Shift+Up/Down, viewport resizing, and zooming for both paragraphs. Compare each result with the pdf.js demo; done means the non-pretext and pretext-enabled paragraphs behave consistently across these actions.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.