mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-11 17:37: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.
4.4 KiB
4.4 KiB