Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: webkit/glue/event_conversion.cc

Issue 40135: Various fixes to mouse wheel scrolling:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/glue/webinputevent.h » ('j') | webkit/glue/webinputevent_mac.mm » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/event_conversion.cc
===================================================================
--- webkit/glue/event_conversion.cc (revision 10933)
+++ webkit/glue/event_conversion.cc (working copy)
@@ -123,10 +123,11 @@
const WebMouseWheelEvent& e) {
m_position = widget->convertFromContainingWindow(IntPoint(e.x, e.y));
m_globalPosition = IntPoint(e.global_x, e.global_y);
- m_deltaX = static_cast<float>(e.delta_x);
- m_deltaY = static_cast<float>(e.delta_y);
+ m_deltaX = e.delta_x;
+ m_deltaY = e.delta_y;
m_isAccepted = false;
- m_granularity = ScrollByLineWheelEvent;
+ m_granularity = e.scroll_by_page ?
+ ScrollByPageWheelEvent : ScrollByLineWheelEvent;
m_shiftKey = (e.modifiers & WebInputEvent::SHIFT_KEY) != 0;
m_ctrlKey = (e.modifiers & WebInputEvent::CTRL_KEY) != 0;
m_altKey = (e.modifiers & WebInputEvent::ALT_KEY) != 0;
« no previous file with comments | « no previous file | webkit/glue/webinputevent.h » ('j') | webkit/glue/webinputevent_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698