View
 

iPhone: Prevent callout, link selection, text auto-resize

Page history last edited by Fabeat 1 month, 3 weeks ago

* {

-webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */

   -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */

   -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */

   -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */

 

 

Use the following code to allow the user to change the content of forms:

 

input, textarea, select{

  -webkit-user-select: auto;

  -webkit-touch-callout: auto;

}