summaryrefslogtreecommitdiff
path: root/dash
diff options
authorAndrea Azzarone <azzaronea@gmail.com>2016-08-17 11:49:00 +0200
committerAndrea Azzarone <azzaronea@gmail.com>2016-08-17 11:49:00 +0200
commitf67cbfecf0ecad3eb185dfa37982ce1837dd9664 (patch)
tree82df1f5de1af0d322fae4bac40719864bf73ff0a /dash
parent5f9f23dcd53ff66e33c149751c1ed8df2f1a765e (diff)
Filter out scrolling envents for FilterExpanderLabel.
Fixes LP: #1604632 (bzr r4168.2.1)
Diffstat (limited to 'dash')
-rw-r--r--dash/FilterExpanderLabel.cpp8
-rw-r--r--dash/FilterExpanderLabel.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/dash/FilterExpanderLabel.cpp b/dash/FilterExpanderLabel.cpp
index b6dd20b86..0137297e5 100644
--- a/dash/FilterExpanderLabel.cpp
+++ b/dash/FilterExpanderLabel.cpp
@@ -273,6 +273,14 @@ void FilterExpanderLabel::DrawContent(nux::GraphicsEngine& graphics_engine, bool
graphics_engine.PopClippingRectangle();
}
+nux::Area* FilterExpanderLabel::FindAreaUnderMouse(const nux::Point& mouse_position, nux::NuxEventType event_type)
+{
+ if (event_type == nux::EVENT_MOUSE_WHEEL)
+ return nullptr;
+ else
+ return nux::View::FindAreaUnderMouse(mouse_position, event_type);
+}
+
//
// Key navigation
//
diff --git a/dash/FilterExpanderLabel.h b/dash/FilterExpanderLabel.h
index 52f672788..3afbaf817 100644
--- a/dash/FilterExpanderLabel.h
+++ b/dash/FilterExpanderLabel.h
@@ -69,6 +69,7 @@ public:
nux::Property<bool> expanded;
protected:
+ nux::Area* FindAreaUnderMouse(const nux::Point&, nux::NuxEventType) override;
virtual bool AcceptKeyNavFocus();
virtual void Draw(nux::GraphicsEngine& GfxContext, bool force_draw);
virtual void DrawContent(nux::GraphicsEngine& GfxContext, bool force_draw);