| 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;
|
|
|