New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 667884 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

auto scroll doesn't work when there is no scrollbar at first.

Reported by xy.jason...@gmail.com, Nov 22 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36

Steps to reproduce the problem:
1. create a div, we can call it "container".
2. give the container fixed width and height, and set the overflow to auto.
3. create a div inside the container, we can call it "content".
4. add some text inside content , but don't let the text exceed the bottom of the content(don't let the scroll bar appear)
5. write a event handler to mouse move, in order to add more text when you dragging to select text.
6. drag to select the text, when dragging, your js code added more text inside the content, so that the scroll bar appears, but when you drag your mouse beyond the bottom of the container, the container will not auto scroll.

7. release your mouse and repeat step 6, now the container will auto scroll.

To make things clear, here is the codepen link:
http://codepen.io/moonqqqq/pen/yVbVym

When you drag to select the text at first time, the container will not auto scroll.
In the second time, it will.

What is the expected behavior?
in step 6, the container should auto scroll to the bottom.

What went wrong?
The container will not auto scroll when there is no scroll bar at first.

Did this work before? N/A 

Does this work in other browsers? No
 the scrolling behavior is weird.

Chrome version: 54.0.2840.99  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 23.0 r0
 
Labels: Needs-Triage-M54 M-54
Cc: krajshree@chromium.org
Labels: Needs-Feedback
Unable to reproduce the issue on Win-10, Ubuntu 14.04 and Mac 10.11.6 using chrome reported version #54.0.2840.99 and latest canary #57.0.2928.0.

Attached a screen cast for reference.

Following are the steps followed to reproduce the issue.
------------
1. Navigated to URL: http://codepen.io/moonqqqq/pen/yVbVym
2. Dragged to select the text, the scroll bar appeared and the container did not auto scroll.
3. Released the mouse and then again dragged to select the text.
4. Observed that the container auto scrolled as expected.

Reporter@ - Could you please check this issue on latest canary #57.0.2928.0 by creating a new profile without any apps and extensions and please let us know if the issue still persist or not.

Thanks...!!
667884.mp4
617 KB View Download
Hi, in your step 2, you have already reproduced it. The first time drag(don't release your mouse) to select the text, you cannot let the container auto scroll... 
Maybe I description is not clear...
After you released your mouse and dragged again, it will auto scroll.
Project Member

Comment 4 by sheriffbot@chromium.org, Dec 1 2016

Labels: -Needs-Feedback Needs-Review
Owner: krajshree@chromium.org
Thank you for providing more feedback. Adding requester "krajshree@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: bokan@chromium.org
Labels: -OS-Windows -Pri-2 -Needs-Review -Needs-Triage-M54 Hotlist-Input-Dev OS-All Pri-3
Owner: sunyunjia@chromium.org
Status: Assigned (was: Unconfirmed)
Reproduced this on ChromeOS as well.

sunyunjia@ do you mind looking at this when you have time.
Cc: sunyunjia@chromium.org
Owner: ----
Status: Available (was: Assigned)

Sign in to add a comment