TouchStart/TouchEnd

Hey there,

I’m trying to implement a simple touch event in Webflow for mobile where if a square is touched, it turns blue. Once you remove your finger it turns back to red. It works perfectly on Codepen, but once i move it over to webflow it breaks.

Webflows touchend event doesn’t work as intended and the square stays blue until some other part of the page is touched. Any ideas from the webflow communtiy?

The working codepen here: https://codepen.io/outofoffice/pen/MWJKjzj

And here’s the webflow page: https://preview.webflow.com/preview/outofoffice?utm_medium=preview_link&utm_source=designer&utm_content=outofoffice&preview=b12fa1aa26458eca93ed1f6195987dfc&pageId=605cebcd3e465b8bc4bdf211&mode=preview

1 Like