RESOLVED FIXED 215979
Rewrite main thread scroll latching logic
https://bugs.webkit.org/show_bug.cgi?id=215979
Summary Rewrite main thread scroll latching logic
Simon Fraser (smfr)
Reported 2020-08-29 12:46:14 PDT
The main thread scroll event handling and latching logic has evolved over time and lacks a real design; see issues noted in bug 215741.
Attachments
Patch (84.53 KB, patch)
2020-08-29 13:02 PDT, Simon Fraser (smfr)
no flags
Patch (84.61 KB, patch)
2020-08-29 14:11 PDT, Simon Fraser (smfr)
no flags
Patch (83.91 KB, patch)
2020-08-29 17:08 PDT, Simon Fraser (smfr)
no flags
Patch (83.89 KB, patch)
2020-08-29 17:15 PDT, Simon Fraser (smfr)
thorton: review+
Simon Fraser (smfr)
Comment 1 2020-08-29 13:02:52 PDT
Simon Fraser (smfr)
Comment 2 2020-08-29 14:11:37 PDT
Simon Fraser (smfr)
Comment 3 2020-08-29 17:08:44 PDT
Simon Fraser (smfr)
Comment 4 2020-08-29 17:15:05 PDT
Tim Horton
Comment 5 2020-08-29 19:06:45 PDT
Comment on attachment 407554 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=407554&action=review > Source/WebCore/page/scrolling/ScrollLatchingController.cpp:55 > +// FIXME: This logic is different frmo ScrollingTreeLatchingController, which simply lets the latching state elapse after 100ms. frmo > Source/WebCore/page/scrolling/ScrollLatchingController.cpp:186 > + // We always allow the main frame receive wheel events to permit rubber-banding. Some grammar > Source/WebCore/page/scrolling/ScrollLatchingController.h:75 > + Frame* frame { nullptr }; // Icky raw pointer. Use FrameIdentifier? Did you want to fix this before landing? > Source/WebCore/page/scrolling/ScrollingTreeLatchingController.cpp:40 > static const Seconds resetLatchedStateTimeout { 100_ms }; Should we plop this in one place and use it from both? > Source/WebCore/platform/PlatformWheelEvent.h:155 > + bool isGestureContinuation() const; // The fingers-down part of the gesture. But not momentum? > LayoutTests/ChangeLog:14 > +2020-08-18 Simon Fraser <simon.fraser@apple.com> Double changelog
Simon Fraser (smfr)
Comment 6 2020-08-30 10:43:48 PDT
Radar WebKit Bug Importer
Comment 7 2020-08-30 10:44:15 PDT
Fujii Hironori
Comment 8 2020-08-30 15:01:00 PDT
The mouse wheel doesn't scroll page in trunk@266333 for WinCairo WK1 and WK2. This change seems the culprit.
Simon Fraser (smfr)
Comment 9 2020-08-30 15:55:02 PDT
Fixed in bug 215990.
Note You need to log in before you can comment on or make changes to this bug.