Use touchend with mouseup as a fallback

Also, don't fire tap if the page has been scrolled.