| Index: views/touchui/gesture_manager.cc
|
| diff --git a/views/touchui/gesture_manager.cc b/views/touchui/gesture_manager.cc
|
| index 3f70f301152d0dcebf9585eb13bc786545d5b541..830ce04d99864a4bdef649b9f0dbd634793b747c 100644
|
| --- a/views/touchui/gesture_manager.cc
|
| +++ b/views/touchui/gesture_manager.cc
|
| @@ -32,9 +32,12 @@ bool GestureManager::ProcessTouchEventForGesture(const TouchEvent& event,
|
| // event distribution code works by turning all touch inputs into
|
| // mouse approximations.
|
|
|
| + // Conver the touch-event into a mouse-event. This mouse-event gets its
|
| + // location information from the native-event, so it needs to drop on the
|
| + // toplevel widget instead of just source->GetWidget.
|
| Event::FromNativeEvent2 from_native;
|
| MouseEvent mouseev(event, from_native);
|
| - source->GetWidget()->OnMouseEvent(mouseev);
|
| + source->GetWidget()->GetTopLevelWidget()->OnMouseEvent(mouseev);
|
| return true;
|
| }
|
|
|
|
|