fixes #87 - added a 'toggling' flag to only fire the event on either  or , but not both