[Webkit-unassigned] [Bug 213791] [GTK4] Support kinetic scrolling
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 2 02:15:02 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=213791
Carlos Garcia Campos <cgarcia at igalia.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #403194|review? |review-
Flags| |
--- Comment #4 from Carlos Garcia Campos <cgarcia at igalia.com> ---
Comment on attachment 403194
--> https://bugs.webkit.org/attachment.cgi?id=403194
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=403194&action=review
Thanks! I think it would be easier to refactor the WebEventFactory create functions.
> Source/WebKit/Shared/NativeWebWheelEvent.h:64
> NativeWebWheelEvent(GdkEvent*, const WebCore::IntPoint&, const WebCore::FloatSize& wheelTicks);
> + NativeWebWheelEvent(GdkEvent*, const WebCore::IntPoint&, const WebCore::FloatSize& wheelTicks, WebWheelEvent::Phase, WebWheelEvent::Phase momentumPhase);
I think this new one makes the previous one unused, so better to modify the existing one if needed.
> Source/WebKit/UIProcess/API/gtk/WebKitWebViewBase.cpp:1278
> + WebWheelEvent::Phase phase = gdk_event_is_scroll_stop_event(event) ?
> + WebWheelEvent::Phase::PhaseEnded :
> + WebWheelEvent::Phase::PhaseChanged;
So, in the end we are passing a fixed momentum phase and phase value that depends on event, so this could be done in WebEventFactory.cpp instead if the parameters currently passed.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200702/8ee1be5d/attachment.htm>
More information about the webkit-unassigned
mailing list