You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-26 14:11:59 +01:00
remove mobile tooltip after 5 seconds (previous behaviour)
This commit is contained in:
committed by
GitHub
parent
bacd2970d7
commit
e92395ccee
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user