Webgl decals example

What is the problem of decal example in phone just.
With mouse no problem but touch event no match .

https://threejs.org/examples/webgl_decals.html

It’s just a demo, so it doesn’t need to cover every use-case. Right now it only has mouse event listeners:

window.addEventListener( 'mousedown', function () {} );
window.addEventListener( 'mouseup', function () {} );

If you want to add touch events to your version, you could add your own touch event handlers.

2 Likes

In my ‘modern subject matter’ version of the DecalGeometry, I have added support for touch events. See the source, lines 51-57
https://sbcode.net/extra_html/game.html (tested in IOS Safari)

Aa thank you very much.

If you developp your game, it will be very interesting , covid virus game :slight_smile:

1 Like