From 16ae88b6d9a7488a2fe6458936b73364affb5fca Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 11 Apr 2016 13:04:44 -0300 Subject: [PATCH] Add comment in she::Event::preciseWheel() --- src/she/event.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/she/event.h b/src/she/event.h index b894a2a1d..a41ee6dc8 100644 --- a/src/she/event.h +++ b/src/she/event.h @@ -69,7 +69,12 @@ namespace she { int repeat() const { return m_repeat; } gfx::Point position() const { return m_position; } gfx::Point wheelDelta() const { return m_wheelDelta; } + + // We suppose that if we are receiving precise scrolling deltas, + // it means that the user is using a touch-like surface (trackpad, + // magic mouse scrolling, touch wacom tablet, etc.) bool preciseWheel() const { return m_preciseWheel; } + MouseButton button() const { return m_button; } double magnification() const { return m_magnification; }