Skip to content

Commit

Permalink
Merge pull request #402 from enthought/fix/legend-highlighter-visibility
Browse files Browse the repository at this point in the history
FIX: Respect visibility in the LegendHighlighter
  • Loading branch information
jwiggins authored Mar 30, 2018
2 parents c9dc493 + 31ee3ca commit e110800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chaco/tools/legend_highlighter.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import operator

import six
import six.moves as sm

# ETS imports
Expand Down Expand Up @@ -50,7 +49,8 @@ class LegendHighlighter(LegendTool):
_selected_renderers = List

def normal_left_down(self, event):
if not self.component.is_in(event.x, event.y):
if (not self.component.visible or
not self.component.is_in(event.x, event.y)):
return

plots = get_hit_plots(self.component, event)
Expand Down

0 comments on commit e110800

Please sign in to comment.