fixed issue with cursor dispatching multiple clicks