Index: Source/web/WebInputEventConversion.cpp |
diff --git a/Source/web/WebInputEventConversion.cpp b/Source/web/WebInputEventConversion.cpp |
index 775039f753d14abbaf25660f3d99dd5e2a312805..fdb2ca3407bf7599d95ccdc5951bba90227f729d 100644 |
--- a/Source/web/WebInputEventConversion.cpp |
+++ b/Source/web/WebInputEventConversion.cpp |
@@ -582,10 +582,10 @@ WebMouseWheelEventBuilder::WebMouseWheelEventBuilder(const Widget* widget, const |
return; |
type = WebInputEvent::MouseWheel; |
updateWebMouseEventFromWebCoreMouseEvent(event, *widget, *renderObject, *this); |
- deltaX = static_cast<float>(event.rawDeltaX()); |
- deltaY = static_cast<float>(event.rawDeltaY()); |
- wheelTicksX = static_cast<float>(event.wheelDeltaX()) / WheelEvent::TickMultiplier; |
- wheelTicksY = static_cast<float>(event.wheelDeltaY()) / WheelEvent::TickMultiplier; |
+ deltaX = -event.deltaX(); |
+ deltaY = -event.deltaY(); |
+ wheelTicksX = event.ticksX(); |
+ wheelTicksY = event.ticksY(); |
scrollByPage = event.deltaMode() == WheelEvent::DOM_DELTA_PAGE; |
} |