Steven Yau
Steven Yau
+1 of user report hitting this issue
+1 of user report hitting this issue
Had another report in support emails
Suggestion: We make this an option for users in the project settings to use/disable
Workaround: https://playcanvas.com/project/722923/overview/ios-select-canvas-fix Code to include in the project: ``` (function() { var style = document.createElement('style'); document.head.appendChild(style); style.innerHTML = "canvas{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0;-webkit-tap-highlight-color:rgba(255,255,255,0)}" + "body{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0}"; })(); ```
I've tried to see if I can restrict this behaviour to the canvas only rather than applying this to the document body. The best I got was to wrap a...
Current thinking is that we add this as an Editor option which is true by default. Users can disable it if they require users to be able to select HTML...
We would still need the option in the Editor for that people who host on playcanv.as :)
As long as it doesn't affect any other input for the engine (eg an orbit camera script) I'm good with that
I've tried it in this project: https://playcanv.as/e/p/8qGM8Y0q/ via code: ``` this.app.graphicsDevice.canvas.onselectstart = function () { return false; }; ``` And on my iOS 15 device, I'm still able to select...