YAFLogo

BWG
  • BWG
  • 100% (Exalted)
  • YAF Lover Topic Starter
14 days ago
Hi,

Is it possible to disable the tooltips for touchscreens or at all through the UI on 3.1.8? The default behaviour appears to be to show the tooltip briefly when a link is clicked on before the new page is opened. 

Sorry if this is an obvious question but I couldn't see an option in the admin or host settings. 

Thanks

BWG

Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
13 days ago
There is no setting to turn it off the only way would be to remove the javascript

var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
    tooltipTriggerList.map(function (tooltipTriggerEl) {
        return new bootstrap.Tooltip(tooltipTriggerEl);
    });

I' dont really understand the problem, but i think increasing the default delay to show them would be the best solution.

BWG
  • BWG
  • 100% (Exalted)
  • YAF Lover Topic Starter
12 days ago
On mine I've dropped the following code near to the end of the default.aspx to stop the tooltips and popovers on touchscreens. It seems to work ok, but I've not finished testing yet. 

if (('ontouchstart' in window))
{         
            $(function () {
                 $('[data-bs-toggle="tooltip"]').tooltip('dispose');
                $('[data-bs-toggle="popover"]').popover('disable');         
 })
}