$click to allow (more) responsiveness

This commit is contained in:
JFH
2022-01-05 20:55:42 -03:00
parent 9652e3affe
commit a48fc66c1c
32 changed files with 161 additions and 156 deletions

View File

@@ -1,6 +1,8 @@
/* globals svgEditor */
const atags = document.querySelectorAll('a')
Array.prototype.forEach.call(atags, function (aEle) {
aEle.addEventListener('click', function (event) {
svgEditor.$click(aEle, function (event) {
event.preventDefault()
const { href } = event.currentTarget
const target = window.parent