Title: [270716] trunk/Source/WebKit
- Revision
- 270716
- Author
- [email protected]
- Date
- 2020-12-11 16:07:26 -0800 (Fri, 11 Dec 2020)
Log Message
Fix the iOS !UISCROLLVIEW_ASYNCHRONOUS_SCROLL_EVENT_HANDLING build.
* Shared/ios/WebIOSEventFactory.mm:
(WebIOSEventFactory::createWebWheelEvent):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (270715 => 270716)
--- trunk/Source/WebKit/ChangeLog 2020-12-11 23:38:50 UTC (rev 270715)
+++ trunk/Source/WebKit/ChangeLog 2020-12-12 00:07:26 UTC (rev 270716)
@@ -1,5 +1,12 @@
2020-12-11 Tim Horton <[email protected]>
+ Fix the iOS !UISCROLLVIEW_ASYNCHRONOUS_SCROLL_EVENT_HANDLING build.
+
+ * Shared/ios/WebIOSEventFactory.mm:
+ (WebIOSEventFactory::createWebWheelEvent):
+
+2020-12-11 Tim Horton <[email protected]>
+
Trackpad and Mouse scroll events on iPad only fire "pointermove" -- not "wheel"
https://bugs.webkit.org/show_bug.cgi?id=210071
<rdar://problem/54616853>
Modified: trunk/Source/WebKit/Shared/ios/WebIOSEventFactory.mm (270715 => 270716)
--- trunk/Source/WebKit/Shared/ios/WebIOSEventFactory.mm 2020-12-11 23:38:50 UTC (rev 270715)
+++ trunk/Source/WebKit/Shared/ios/WebIOSEventFactory.mm 2020-12-12 00:07:26 UTC (rev 270716)
@@ -155,8 +155,12 @@
WebKit::WebWheelEvent WebIOSEventFactory::createWebWheelEvent(UIScrollEvent *event, UIView *contentView)
{
WebCore::IntPoint scrollLocation = WebCore::roundedIntPoint([event locationInView:contentView]);
+#if HAVE(UISCROLLVIEW_ASYNCHRONOUS_SCROLL_EVENT_HANDLING)
CGVector deltaVector = [event _adjustedAcceleratedDeltaInView:contentView];
WebCore::FloatSize delta(deltaVector.dx, deltaVector.dy);
+#else
+ WebCore::FloatSize delta;
+#endif
return {
WebKit::WebEvent::Wheel,
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes