mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-12 01:47:00 +02:00
The text cursor follows slightly different "intuitive" rules than the regular hit testing. Clicking past the right edge of a text box should still "hit" the text box, and place the cursor at its end, for example. We solve this by adding a HitTestType enum that is passed to hit_test() and determines whether past-the-edge candidates are considered.
2.6 KiB
2.6 KiB