code: def _event_ignored(self, event):
          
          # Ignore if another action (zoom, pan) is active
          if event.canvas.widgetlock.locked():
              return True
  
          # Ignore non-hiding pick events for the annotation box itself
          # (otherwise, draggable annotation boxes won't work) and pick
          # events not for the artists that this data cursor manages.
          if event.artist not in self.artists:
              return True
  
          if not self.hover:
              # Ignore pick events from other mouse buttons
              if event.mouseevent.button != self.display_button:
                  return True
  
          return False
docs: Decide whether or not to ignore a click/hover event.