mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 08:49:16 +02:00
remove mobile tooltip after 5 seconds (previous behaviour)
This commit is contained in:
@@ -1168,6 +1168,11 @@ function initTooltips(target = null) {
|
|||||||
|
|
||||||
// Apply positioning
|
// Apply positioning
|
||||||
tooltipEl.css({ top: posY, left: posX, opacity: 1 });
|
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));
|
}, 300));
|
||||||
}, function () {
|
}, function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user