Fix click events from firing multiple times after window resize.