New issue
Advanced search Search tips

Issue 880251 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Sep 7
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Selected text outside scroll area is clipped when dragging

Reported by i...@vivaldi.com, Sep 4

Issue description

UserAgent: 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.
 
test-simple.html
253 bytes View Download
Here is the screenshots 
selection_drag_edge.png
46.0 KB View Download
selection_drag_firefox.png
37.1 KB View Download
selection_drag_chromium.png
19.1 KB View Download
Labels: Needs-Triage-M69
Components: -Blink Blink>DataTransfer Blink>Paint
Status: Untra (was: Unconfirmed)
Status: Untriaged (was: Untra)
Can reproduce Chrome Linux 69.0.3497.81
Owner: pdr@chromium.org
Status: Assigned (was: Untriaged)
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.
Status: WontFix (was: Assigned)
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.
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