1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

Fix a bug on click event

This commit is contained in:
asmsuechan
2017-07-09 18:08:33 +09:00
parent f9836fd66e
commit 7302d83f60

View File

@@ -24,6 +24,7 @@ document.addEventListener('dragover', function (e) {
})
document.addEventListener('click', function (e) {
if (!e.target.className) return
const isInfoButton = e.target.className.includes('infoButton')
const isInfoPanel = e.target.offsetParent.className.includes('infoPanel')
if (isInfoButton || isInfoPanel) return