Update tap.js for better tap detection on overflow scrolling