You've already forked fm-dx-webserver
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:
committed by
GitHub
parent
bacd2970d7
commit
e92395ccee
@@ -1169,6 +1169,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 () {
|
||||||
clearTimeout($(this).data('timeout'));
|
clearTimeout($(this).data('timeout'));
|
||||||
|
|||||||
Reference in New Issue
Block a user