1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

remove mobile tooltip after 5 seconds (previous behaviour)

This commit is contained in:
Amateur Audio Dude
2025-04-20 17:00:07 +10:00
committed by GitHub
parent bacd2970d7
commit e92395ccee

View File

@@ -1168,6 +1168,11 @@ function initTooltips(target = null) {
// Apply positioning
tooltipEl.css({ top: posY, left: posX, opacity: 1 });
// For touchscreen devices
if ((/Mobi|Android|iPhone|iPad|iPod|Opera Mini/i.test(navigator.userAgent)) && ('ontouchstart' in window || navigator.maxTouchPoints)) {
setTimeout(() => { $('.tooltiptext').remove(); }, 5000);
}
}, 300));
}, function () {