Disabling text selection alone with -webkit-user-select: none;
did not work for me. I must use @Zhen Yao approach with calling event.preventDefault()
in the touchstart event too.
Additionally: You can disable the magnifying glass on the entire document or on a specific element, depending on which element you call the touchstart event and set the css.
#some-html-id { -webkit-user-select: none; }
/* disable on specific html element */
var htmlElement = document.getElementById( 'some-html-id' );
htmlElement.addEventListener('touchstart', function( event ) {
event.preventDefault();
}, false);
Sample fiddle: https://jsfiddle.net/0efro6cw/