Attempt to fix "ghost click" issue on iOS

In some situations Safari on iOS issued two
click events for a single tap, which this commit
attempts to work around.