Reduce mouseout reset delay

This commit is contained in:
Jaifroid 2024-05-13 22:10:55 +01:00
parent 51a5e61b47
commit ce7248920b

View File

@ -6998,7 +6998,7 @@ function addListenersToLink (a, href, baseUrl) {
a.addEventListener('mouseout', function (e) { a.addEventListener('mouseout', function (e) {
if (a.dataset.touchevoked === 'true') return; if (a.dataset.touchevoked === 'true') return;
uiUtil.removeKiwixPopoverDivs(e.target.ownerDocument); uiUtil.removeKiwixPopoverDivs(e.target.ownerDocument);
setTimeout(reset, 1400); setTimeout(reset, 1000);
}); });
a.addEventListener('focus', function (e) { a.addEventListener('focus', function (e) {
setTimeout(function () { // Delay focus event so touchstart can fire first setTimeout(function () { // Delay focus event so touchstart can fire first