Skip to content

Commit

Permalink
Filter out scrolling envents for FilterExpanderLabel. (LP: #1604632)
Browse files Browse the repository at this point in the history
Approved by: Marco Trevisan (Treviño)
  • Loading branch information
azzar1 authored and Bileto Bot committed Aug 17, 2016
2 parents 42caeae + 5bd7c95 commit 6fc4daf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dash/FilterExpanderLabel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
//
Expand Down
1 change: 1 addition & 0 deletions dash/FilterExpanderLabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class FilterExpanderLabel : public nux::View, public debug::Introspectable
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);
Expand Down

0 comments on commit 6fc4daf

Please sign in to comment.