revert listening to 'click' event on locate btn

This commit is contained in:
Bogdan Abaev 2024-08-09 09:57:43 -07:00
parent 45fe01c30f
commit 134aef52c5

View file

@ -221,7 +221,7 @@
let action = toolbarbutton.dataset.action;
if (action === 'locate') {
toolbarbutton.addEventListener('click', async (event) => {
toolbarbutton.addEventListener('mousedown', async (event) => {
if (event.button !== 0 || toolbarbutton.open) {
return;
}