Skip to content
Advertisement

Tag: ogx.js

OGX.JS How to have multiple mouse/touch events?

I’m trying to get the distance after a touch/mouse move over 2 separate elements in OGX.JS. I use the built in touch dist, which works But how to I add another one? If I add another instance like that, it just overwrites the first one. Thanks Answer You have to create another instance of touch.dist, which is an instance of

Advertisement