Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
HTML for iOS UIWebView that will show unwanted overlay when touching screen edge
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
body {
margin: 0;
padding: 0;
*, *:before, *:after {
-webkit-user-select: none;
-webkit-text-size-adjust: none;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-backface-visibility: hidden;
.my-div {
position: absolute;
background-color: pink;
width: 320px;
height: 480px;
display: block;
<body id="body">
<div class="my-div" id="my-div"></div>
<script type="text/javascript">
document.addEventListener('click', function(){}, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment