summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--views/events/event_win.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/events/event_win.cc b/views/events/event_win.cc
index 9e063d3..683a4be 100644
--- a/views/events/event_win.cc
+++ b/views/events/event_win.cc
@@ -60,9 +60,10 @@ ui::EventType EventTypeFromNative(NativeEvent native_event) {
case WM_RBUTTONUP:
return ui::ET_MOUSE_RELEASED;
case WM_MOUSEMOVE:
- case WM_NCMOUSEMOVE:
return IsButtonDown(native_event) ? ui::ET_MOUSE_DRAGGED :
ui::ET_MOUSE_MOVED;
+ case WM_NCMOUSEMOVE:
+ return ui::ET_MOUSE_MOVED;
case WM_MOUSEWHEEL:
return ui::ET_MOUSEWHEEL;
case WM_MOUSELEAVE: