Prevent safari selection

I have a simple app that I’m running both in safari (s3 static site) as well as Cordova. I’ve added a feature where if I hold a button down, it will increment a value every 1/2 second. When I’m running this on my phone (iPhone XR) it causes the entire app to be selected for copy. It’s quite annoying. I thought if I put it in Cordova, it would stop that behavior but it does the same thing. Any advice?

Thanks,
Mike

https://playcanvas.com/project/722923/overview/ios-select-canvas-fix

There is a style sheet fix for this. The reason why this isn’t the default is because it also prevents HTML elements that developers may add to not be text highlightable which may not be a desirable behaviour.

1 Like

Thanks for the quick reply! I’ll give it a shot.