Fix: Settings checkbox conflicts with fastclick #9

This commit is contained in:
surunzi
2016-05-26 12:08:24 +08:00
parent ccb7bb054e
commit 4500dedc90
3 changed files with 13 additions and 3 deletions

View File

@@ -35,6 +35,7 @@
opacity: 0;
}
.label {
pointer-events: none;
position: relative;
display: block;
height: 14px;
@@ -65,6 +66,7 @@
}
.handle {
position: absolute;
pointer-events: none;
top: 0;
left: 0;
width: 18px;

View File

@@ -78,10 +78,11 @@ module.exports = {
{
el = document.createElement('div');
document.documentElement.appendChild(el);
el.id = 'eruda';
el.className = 'eruda-container'
}
el.id = 'eruda';
el.className = 'eruda-container';
this._$el = util.$(el);
},
_initDevTools()

View File

@@ -5,13 +5,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Eruda</title>
<link rel="stylesheet" href="style.css">
<script>
window.onerror = function (msg) {
alert(msg);
}
</script>
<script src="../dist/eruda.js"></script>
<script>eruda.init();</script>
</head>
<body>
<div id="test-element" class="border" style="color:red">
@@ -72,5 +72,12 @@
xhr.open('GET', 'http://localhost:3000/test/data.json');
xhr.send();
</script>
<script>
var el = document.createElement('div');
document.body.appendChild(el);
eruda.init({container: el});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.6/fastclick.min.js"></script>
<script>FastClick.attach(document.body);</script>
</body>
</html>