[Webkit-unassigned] [Bug 139757] Delegates scrolling by wheel event should be work within contents area.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun May 10 20:43:48 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=139757
--- Comment #19 from Sanghyup Lee <sh53.lee at samsung.com> ---
(In reply to comment #18)
> Comment on attachment 252790 [details]
> Patch
>
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=252790&action=review
>
> > Source/WebCore/page/FrameView.cpp:4460
> > IntPoint oldPosition = scrollPosition();
> > IntSize newOffset = IntSize(offset.width() - wheelEvent.deltaX(), offset.height() - wheelEvent.deltaY());
> > if (offset != newOffset) {
> > - ScrollView::scrollTo(newOffset);
> > + setScrollOffset(IntPoint(newOffset));
> > scrollPositionChanged(oldPosition, scrollPosition());
> > didChangeScrollOffset();
> > }
>
> With this patch as posted for review, scrollPositionChanged and
> didChangeScrollOffset will be called twice. Instead of these 8 lines of
> code, I suggest this one line of code:
>
> setScrollOffset(scrollPosition() + IntSize(-wheelEvent.deltaX(),
> -wheelEvent.deltaY()));
>
> I didnât look at the failure on Mac; the one to that is running tests in
> this mode returned a failure.
Thank you for your kind review and I'll fix it.
As far as I know, delegate scrolling is for WK2.
So Can I skip this test on Mac?
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150511/2bc083b2/attachment.html>
More information about the webkit-unassigned
mailing list