You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
input / textarea - mouse interaction doesn't work #10083
Pretty sure the reason I didn't implement this original was that figuring out the correspondence between click position and text character index is complicated for non-monospace fonts.
I got a first working version to see if I'm on the right path. I guess the only proper way here is to use a new RPC to talk to layout. I'll continue to work on this and post updates.
Great work! One other case to test is whether that query works correctly after scrolling the page away from the origin, both for a text input that was originally in view and for one that scrolls into view.
Thanks for the first input. Positioning after scrolling seems to be working like it should. I might run into problems when the input is in a different stacking context. But I'll figure it out.
Small status update. I found some time yesterday and continued working on this. I changed a lot and it should work with transforms and stacking contexts. I took care of some performance issues and found some bugs.
Still no open PR sorry for that. I didn't have to much time and found an issue with horizontal scrolling. I worked around the space bar issue. master...fiji-flo:text-input-select
TODO:
refactor duplicated code: unify text_index and hit_test (my fist naive approach to this didn't work out)
I refactored the duplicated code and adopted to the latest changes in display_list.
Mouse placement works now for input elements. I made a pull request out of this. @jdm Can you think of a way to test this? Reftests don't really cover external input.
I will continue to work on:
positioning in textarea elements via mouse
text selection in input/textarea elements via mouse
Activity
jdm commentedon Mar 18, 2016
Pretty sure the reason I didn't implement this original was that figuring out the correspondence between click position and text character index is complicated for non-monospace fonts.
pcwalton commentedon Mar 19, 2016
@jdm The text run glyph stores should have enough info to do it.
fiji-flo commentedon Sep 25, 2016
I started working on this (fiji-flo@6e03787).
I got a first working version to see if I'm on the right path. I guess the only proper way here is to use a new RPC to talk to layout. I'll continue to work on this and post updates.
Here is how it looks like:
https://static.fiji-flo.de/servo-inputelement.webm
jdm commentedon Sep 25, 2016
Great work! One other case to test is whether that query works correctly after scrolling the page away from the origin, both for a text input that was originally in view and for one that scrolls into view.
fiji-flo commentedon Sep 26, 2016
Thanks for the first input. Positioning after scrolling seems to be working like it should. I might run into problems when the input is in a different stacking context. But I'll figure it out.
current issues:
fiji-flo commentedon Oct 17, 2016
Small status update. I found some time yesterday and continued working on this. I changed a lot and it should work with transforms and stacking contexts. I took care of some performance issues and found some bugs.
Here's the current diff:
master...fiji-flo:text-input-select
And here how it looks:
https://static.fiji-flo.de/servo-inputelement-stacking.webm
Things to clean up before I'll create a PR:
text_indexandhit_testThis will only take care of
inputelements. Afterwards, I'll start working ontextareaand general text selection.fiji-flo commentedon Nov 7, 2016
Still no open PR sorry for that. I didn't have to much time and found an issue with horizontal scrolling. I worked around the space bar issue.
master...fiji-flo:text-input-select
TODO:
text_indexandhit_test(my fist naive approach to this didn't work out)fiji-flo commentedon Nov 20, 2016
I refactored the duplicated code and adopted to the latest changes in
display_list.Mouse placement works now for
inputelements. I made a pull request out of this.@jdm Can you think of a way to test this? Reftests don't really cover external input.
I will continue to work on:
jdm commentedon Nov 20, 2016
Until we have the webdriver test harness working, we can't write tests that rely on user input.
Auto merge of #14291 - fiji-flo:text-input-select, r=pcwalton
fiji-flo commentedon Jan 12, 2017
@jdm can you reopen that ticket?
Still missing:
I already started working on theses.
nox commentedon Oct 1, 2017
Was this done in the end?
script: Add support for setting the edit point with the mouse in `<in…