Why are you dispatching a custom mouse event? This needs documenting.