Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: b31973ed822b67cb44fce5b2c251a895c05c3db1 https://github.com/WebKit/WebKit/commit/b31973ed822b67cb44fce5b2c251a895c05c3db1 Author: Nikolaos Mouchtaris <nmouchta...@apple.com> Date: 2025-07-15 (Tue, 15 Jul 2025)
Changed paths: M Source/WebCore/PAL/pal/spi/mac/IOKitSPIMac.h M Source/WebCore/page/WheelEventDeltaFilter.cpp M Source/WebCore/page/mac/WheelEventDeltaFilterMac.mm M Source/WebCore/page/scrolling/ScrollingTreeGestureState.cpp M Source/WebCore/platform/PlatformWheelEvent.cpp M Source/WebCore/platform/PlatformWheelEvent.h M Source/WebCore/platform/PlatformWheelEvent.serialization.in M Source/WebCore/platform/mac/ScrollingEffectsController.mm M Source/WebKit/Shared/WebEvent.serialization.in M Source/WebKit/Shared/WebWheelEvent.h M Source/WebKit/Shared/mac/WebEventFactory.mm M Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm M Source/WebKit/WebProcess/WebPage/MomentumEventDispatcher.cpp M Source/WebKitLegacy/mac/DOM/WebDOMOperations.mm Log Message: ----------- Add momentum phase will begin to WebWheelEvent https://bugs.webkit.org/show_bug.cgi?id=295945 rdar://155832880 Reviewed by Simon Fraser. To properly implement scrollend events, we need to know if a phase ended wheel event will result in subsequent momentum events. Although this has not been adopted by AppKit, we can look at the underlying IOHIDEvent. This patch adds a WillBegin phase, which will be consulted in an upcoming patch implemnting the scrollend event for momentum scrolls. * Source/WebCore/PAL/pal/spi/mac/IOKitSPIMac.h: * Source/WebCore/page/WheelEventDeltaFilter.cpp: (WebCore::BasicWheelEventDeltaFilter::updateFromEvent): * Source/WebCore/page/mac/WheelEventDeltaFilterMac.mm: (WebCore::WheelEventDeltaFilterMac::updateFromEvent): * Source/WebCore/page/scrolling/ScrollingTreeGestureState.cpp: (WebCore::ScrollingTreeGestureState::nodeDidHandleEvent): * Source/WebCore/platform/PlatformWheelEvent.cpp: (WebCore::operator<<): * Source/WebCore/platform/PlatformWheelEvent.h: (WebCore::PlatformWheelEvent::isMomentumEvent const): * Source/WebCore/platform/PlatformWheelEvent.serialization.in: * Source/WebCore/platform/mac/ScrollingEffectsController.mm: (WebCore::ScrollingEffectsController::handleWheelEvent): * Source/WebKit/Shared/WebEvent.serialization.in: * Source/WebKit/Shared/WebWheelEvent.h: (WebKit::WebWheelEvent::isMomentumEvent const): * Source/WebKit/Shared/mac/WebEventFactory.mm: (WebKit::WebEventFactory::createWebWheelEvent): * Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm: (WebKit::PDFPlugin::handleWheelEvent): * Source/WebKit/WebProcess/WebPage/MomentumEventDispatcher.cpp: (WebKit::MomentumEventDispatcher::handleWheelEvent): * Source/WebKitLegacy/mac/DOM/WebDOMOperations.mm: (toNSEventPhase): Canonical link: https://commits.webkit.org/297432@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes