Bug 40403 - Autoscroll on selection should take scrollbars into account as outside of the content.
Summary: Autoscroll on selection should take scrollbars into account as outside of the...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-09 23:07 PDT by Hajime Morrita
Modified: 2010-07-22 19:36 PDT (History)
2 users (show)

See Also:


Attachments
reproduce (877 bytes, text/html)
2010-06-09 23:07 PDT, Hajime Morrita
no flags Details
patch v0 (2.58 KB, patch)
2010-06-28 03:32 PDT, Hajime Morrita
ojan: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hajime Morrita 2010-06-09 23:07:05 PDT
Created attachment 58331 [details]
reproduce

How to reproduce:
- Resize window to about 500x500
- Open reproduce HTML
- Mouse down somewhere on the text
- Drag mouse cursor (caret) to rightmost scrollbar

What to expect:
- Window start to scroll to right

Happens instead:
- No scroll happens.
Comment 1 Hajime Morrita 2010-06-09 23:08:30 PDT
Scrollbars with "overflow:scroll" work well. This happens only with outermost scrollbars.
Comment 2 Hajime Morrita 2010-06-24 22:54:57 PDT
How other applications  behave:
- Firefox and IE8 also start autoscroll when the cursor is over the scrollbar
- TextEdit.app is also same.
Comment 3 Hajime Morrita 2010-06-28 03:32:10 PDT
Created attachment 59889 [details]
patch v0
Comment 4 Hajime Morrita 2010-06-28 03:36:36 PDT
Could anyone can take a look at this?
This type of autoscroll matters for fullscreen-oriented devices such as tablet and netbooks.
Other apps also support this.
Comment 5 mitz 2010-06-28 08:11:41 PDT
Is there a reason why this cannot be tested with DumpRenderTree?
Comment 6 Hajime Morrita 2010-06-28 22:22:54 PDT
HI mitz, thank you for taking a look!

(In reply to comment #5)
> Is there a reason why this cannot be tested with DumpRenderTree?
I tried, but couldn't figure out how.
I tried to send mouse events using eventSender.mouseMove(), 
But nothing happen when the pointer's position is over the scrollbar.
When the position is inside the content area (not over the scrollbar), 
events are delivered to WebCore. But with scrollbar, they aren't. 

I suspect invoking NSView.mouseMoved() or NSView.mouseDragged() isn't sufficient to
deliver events to the scrollbar. But I'm not sure.
Comment 7 Hajime Morrita 2010-07-22 19:36:35 PDT
Committed r63943: <http://trac.webkit.org/changeset/63943>