fix: click event stop propagation #155

This commit is contained in:
redhoodsu
2023-01-28 15:27:17 +08:00
parent a4afc044dc
commit 64355a2a19
2 changed files with 5 additions and 1 deletions

View File

@@ -126,6 +126,9 @@
.safe-area #console {
@include safe-area(padding-bottom, 24px);
&.js-input-hidden {
padding-bottom: 0;
}
.js-input {
@include safe-area(height, 24px);
&.active {

View File

@@ -347,9 +347,10 @@ export default class DevTools extends Emitter {
$document.off(drag('end'), endListener)
}
$resizer.css('height', 10)
$navBar.on('contextmenu', (e) => e.preventDefault())
$resizer.on(drag('start'), startListener)
$navBar.on('contextmenu', (e) => e.preventDefault())
this.$container.on('click', (e) => e.stopPropagation())
window.addEventListener('resize', this._checkSafeArea)
}
}