Skip to content
Advertisement

Tag: touch

p5.js: Drawing tool doesn’t work well on mobile devices

For a project, I would like to work with this code: I realized that it doesn’t work well on mobile devices. Sometimes nothing draws, sometimes I get some colored dots. It should possible to draw “normally” with the finger. Is there a way to fix that? Would be very thankful for help! <3 Answer This won’t work as a runnable

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 eventListeners What am I missing ? Answer The problem comes

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; not working with touch slide) Thank you Answer Look into

Dealing with touchMove events in iOS and Ember

I’m adding iOS support to an Ember application which uses Flame.js. Most Flame.js widgets don’t have built-in support for touch events at the moment, so I’m working on adding it to the ones I need. I’ve got touchStart and touchEnd working just fine for clicking and certain state transitions. However, touchMove has been a mess so far. I need it

Advertisement