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

Unified Diff: ui/views/widget/native_widget_aura.cc

Issue 10868096: aura: Fix propagating wheel events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more Created 8 years, 4 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 | « ui/base/event.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_aura.cc
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index 00e6e88ed44dd47a877951f111a06d46102aa64e..96c9e58c484289d94d6acfa8a7b71047a3caa11c 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -797,10 +797,8 @@ bool NativeWidgetAura::ShouldDescendIntoChildForEventHandling(
bool NativeWidgetAura::OnMouseEvent(ui::MouseEvent* event) {
DCHECK(window_->IsVisible());
- if (event->type() == ui::ET_MOUSEWHEEL) {
- ui::MouseWheelEvent mwe(*event);
- return delegate_->OnMouseEvent(mwe);
- }
+ if (event->type() == ui::ET_MOUSEWHEEL)
+ return delegate_->OnMouseEvent(*event);
if (event->type() == ui::ET_SCROLL) {
if (delegate_->OnMouseEvent(*event))
« no previous file with comments | « ui/base/event.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698