score:1

You can use pure css for this. This will also disable text selection on desktop browsers as well. Webkit's touch callout is not a standard feature so it might not work for all users.

svg text {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-touch-callout


Related Query

More Query from same tag