summaryrefslogtreecommitdiffstats
path: root/views/widget/root_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/widget/root_view.cc')
-rw-r--r--views/widget/root_view.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/widget/root_view.cc b/views/widget/root_view.cc
index 712bc52a..878e236 100644
--- a/views/widget/root_view.cc
+++ b/views/widget/root_view.cc
@@ -320,8 +320,8 @@ void RootView::OnMouseExited(const MouseEvent& event) {
bool RootView::OnMouseWheel(const MouseWheelEvent& event) {
MouseWheelEvent e(event, this);
bool consumed = false;
- View* v = GetFocusManager()->GetFocusedView();
- for (; v && v != this && !consumed; v = v->parent())
+ for (View* v = GetFocusManager()->GetFocusedView();
+ v && v != this && !consumed; v = v->parent())
consumed = v->OnMouseWheel(e);
return consumed;
}