Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upText highlighting doesn't respect scrolling below the fold #17327
Comments
|
Note: Text highlighting with mouse is not supported in servo yet. (At least it does not work for me.) The code example uses the Ace editor which somehow (probably servo sends wrong position) highlights the wrong text sections. |
|
It would be worth checking if this is reproducible using a regular textbox. |
|
Since regular textboxes do not support highlighting yet: No it isn't. See issue #10083 There are weird things going on with positions and scrolling but they also happen with regular divs. |
|
Highlighting is supported by the keyboard, not the mouse. |
|
@jdm - if that's true, sounds like we'd want to disable the mouse highlight until it's working |
|
You cannot highlight things with the mouse, so I'm not sure what you're suggesting. |
|
This is still an issue. For reference the page used in the example has moved to: https://prev.rust-lang.org/en-US/ |
|
This may be related to events having incorrect clientX/clientY values, based on reading the unminified ACE editor code from https://cdn.jsdelivr.net/ace/1.1.3/noconflict/ace.js. |
This seems similar to the issue with had with click areas not respecting scrolling (#16504 and #16405). If you scroll down the page and try to highlight some text, it will ignore that you've scrolls and highlight text as if you were still above the fold.
Here's an example of me scrolling down the page and highlighting starting with the "0 =>"