mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Fix: Settings checkbox conflicts with fastclick #9
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user