Title: [292168] trunk/Source/WebKit
Revision
292168
Author
[email protected]
Date
2022-03-31 13:12:02 -0700 (Thu, 31 Mar 2022)

Log Message

[WinCairo][WK2] fast/events/wheel/wheelevent-basic.html is timing out
https://bugs.webkit.org/show_bug.cgi?id=238590

Reviewed by Don Olmstead.

This issue happened only if SPI_GETWHEELSCROLLLINES was less than
3. If I changed "Choose how many lines to scroll each time" to 1
or 2 in Windows Settings, this test passed.

* Shared/win/WebEventFactory.cpp:
(WebKit::WebEventFactory::createWebWheelEvent): Changed local
variables to float not to truncate the wheel delta.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (292167 => 292168)


--- trunk/Source/WebKit/ChangeLog	2022-03-31 20:07:32 UTC (rev 292167)
+++ trunk/Source/WebKit/ChangeLog	2022-03-31 20:12:02 UTC (rev 292168)
@@ -1,3 +1,18 @@
+2022-03-31  Fujii Hironori  <[email protected]>
+
+        [WinCairo][WK2] fast/events/wheel/wheelevent-basic.html is timing out
+        https://bugs.webkit.org/show_bug.cgi?id=238590
+
+        Reviewed by Don Olmstead.
+
+        This issue happened only if SPI_GETWHEELSCROLLLINES was less than
+        3. If I changed "Choose how many lines to scroll each time" to 1
+        or 2 in Windows Settings, this test passed.
+
+        * Shared/win/WebEventFactory.cpp:
+        (WebKit::WebEventFactory::createWebWheelEvent): Changed local
+        variables to float not to truncate the wheel delta.
+
 2022-03-31  Brent Fulgham  <[email protected]>
 
         Add a placeholder for some additional Captive Portal mode settings

Modified: trunk/Source/WebKit/Shared/win/WebEventFactory.cpp (292167 => 292168)


--- trunk/Source/WebKit/Shared/win/WebEventFactory.cpp	2022-03-31 20:07:32 UTC (rev 292167)
+++ trunk/Source/WebKit/Shared/win/WebEventFactory.cpp	2022-03-31 20:12:02 UTC (rev 292168)
@@ -413,10 +413,10 @@
 
     auto modifiers = modifiersForEvent(wParam);
 
-    int deltaX = 0;
-    int deltaY = 0;
-    int wheelTicksX = 0;
-    int wheelTicksY = 0;
+    float deltaX = 0;
+    float deltaY = 0;
+    float wheelTicksX = 0;
+    float wheelTicksY = 0;
 
     float delta = GET_WHEEL_DELTA_WPARAM(wParam) / static_cast<float>(WHEEL_DELTA);
     bool isMouseHWheel = (message == WM_MOUSEHWHEEL);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to