diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-05 16:55:56 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-05 16:57:51 +0200 |
commit | e2b4fef6c75070febdc689d7fadc21eb28c2315d (patch) | |
tree | 981ef1f04549f0d07f29e6cb8e5c369ebe1b85ea /Meta | |
parent | 5cee150a91b6c3fab02240ebc3d7a48e5bbad56e (diff) | |
download | serenity-e2b4fef6c75070febdc689d7fadc21eb28c2315d.zip |
LibWeb: Specialize hit testing for text cursor purposes
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.
Diffstat (limited to 'Meta')
0 files changed, 0 insertions, 0 deletions