Closed mbirnbaum closed 7 years ago
@mbirnbaum i'd check via javascript if it's a touchscreen or not and then use tooltip-hidden="true"
in case
scope.tooltipHidden = false;
angular.element($window).on('touchstart', function () { scope.tooltipHidden = true; });
<span ng-controller="ctrl as MyCtrl">
<a tooltips tooltip-template="hello" tooltip-hidden="ctrl.tooltipHidden">tooltip</a>
</span>
Where would I add this? in the tooltipsConfProvider
?
@mbirnbaum Controller and view
Not in config or it will be hidden even on normal screens, just switch it in the view
But, I use the tooltips all over my app. There's no global setting for this?
You can but if you add it to the config provider it will be the same configuration both for touch and normal screens.
I'd make a little global find&replace in view files.
@mbirnbaum try also tooltip-hide-trigger="touchstart dbclick"
tooltip-hide-trigger="touchstart dbclick"
does nothing. showing tooltips on iPad.
there is no such feature or option specific to touchscreens, you can even use css to show or hide tooltips, just hack around and/or use tooltip-hidden nope?
I only want my tooltips to show with mouse interactions. If it is a touch screen, I do not want it to show. The default show-trigger is
mouseover
. But this is also showing the tooltips when I touch. What setting should I use to disable tooltips on touchscreen?