When running on iPhone after double tap and hold on second tap, default iPhone text selection magnifier pops up. I would like to remove it, but had no luck so far.
Here is what it looks in the app ( bubble in the center of the screen )
personally iād wrap all elements with the following and then only apply the opposite settings to the individual elements that would require it, like soā¦
from a quick flick through some related issues on github it looks like @PavelBoytchevās suggestion should do it from inside a touchstart event listener but will also prevent any click event listeners from firing, are you using the dblclick event for this?
I donāt use iOS personally so i wonāt be able to test, the iPhone 6 i use for testing iām sure is still on iOS 14 alsoā¦
I need to be using regular touch input. Blocking all input is certainly a solution that would work, but not very practical unfortunately.
I am not using anything myself, itās happening automaticly. I am not even using any touch events/inputs except for orbit controls.
@forerunrun The idea with double tap event got me thinking and I did use this function to prevent double tap altogether:
This solves it as the double tap is entirely ignored, so thanks for the suggestion. Not sure, if there is some better solution to catching double tap events. Doubleclick event did not work
window.addEventListener(ādblclickā, ondblclick, false)
function ondblclick(event)
{ event.preventDefault(); }
ah ok thatās great, to be fair i didnāt even think about the dblclick event not being supported by mobile devices, i just read that itās not here so if your workaround works it works
So itās actually still there, itās just happens less often. Anyways, if you would have some other idea or anyone else, let me know. But thanks for the help.