Skip to content

Tag: touch

scrollIntoView not executed in touch event listener

I’m trying to make a vertical slide, it works on desktop with wheel event but the scrollIntoView methode doesn’t get executed in a touch event listener. Here is the code The weird point is that the console logs inside the conditions are executed and the scrollIntoView method works outside the even…

JS: Touch equivalent for mouseenter

is there a touch equivalent of the mouseenter. I would like to detect if user slide on my DIV. I prefer a solution depending directly on the target element not on a parent element with recounting positions etc. The site: http://dizzyn.github.io/piano-game/ – works fine with mouse (mouse down and slide; …