Selected text outside scroll area is clipped when dragging
Reported by
i...@vivaldi.com,
Sep 4
|
||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.183 Safari/537.36 Vivaldi/1.96.1147.64 Example URL: seethe attached test case Steps to reproduce the problem: 1. In the attached test case select the whole text. 2. Scroll the text so only the lower part of the last selected line is visible. 3. Drag the selected text. What is the expected behavior? All selected text (Firefox behavior) or at least the whole last selected line (MS Edge) are shown during dragging. What went wrong? During dragging Chromium shows only the part of the last text line that was visible before the dragging. The clipped out part is not shown. The attached screenshots show the difference between Chromium, Edge and Firefox. Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 69.0.3497.72 Channel: beta OS Version: 10.0 Flash Version: It is interesting that if I have an HTML element with draggable="true" than the whole element is shown during dragging including the parts outside the visible view. But the selected text is cut.
,
Sep 4
,
Sep 4
,
Sep 5
,
Sep 5
Can reproduce Chrome Linux 69.0.3497.81
,
Sep 5
pdr@m given your not-so-distant involvement in this code, could you look into a fix and comment. You could then mark Available if it's not likely to be fixed immediately.
,
Sep 7
This was a conscious design choice made in http://crrev.com/501851 because users could select entire pages and then the browser would crash because the drag image exhausted the system memory. This is particularly problematic on android because the screen resolutions are so huge compared to the available ram. There are some techniques we could take to make this harder to see (e.g., add some padding around the viewport before clipping) but I think this behavior will always exist in some form. I think we should close this as wontfix due to the above, but I'm happy to re-open if needed.
,
Sep 8
MS Edge solved the problem of the excessive selection by showing only the visible lines of the selected text. All such lines are shown fully without any cropping, see the above screenshots. It would be nice if Chrome did the same. I.e. expand the crop to include all visible selected lines fully. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by i...@vivaldi.com
, Sep 446.0 KB
46.0 KB View Download
37.1 KB
37.1 KB View Download