Changed how hover and click events are handled internally.