DEV: Update `hasTouchCapabilities` in `d-tooltip.js` (#22388)
This commit is contained in:
parent
585a2e4e77
commit
9bbfb6e171
|
@ -5,7 +5,7 @@ function stopPropagation(instance, event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
}
|
}
|
||||||
function hasTouchCapabilities() {
|
function hasTouchCapabilities() {
|
||||||
return navigator.maxTouchPoints > 0;
|
return navigator.maxTouchPoints > 1 || "ontouchstart" in window;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function createDTooltip(target, content) {
|
export default function createDTooltip(target, content) {
|
||||||
|
|
Loading…
Reference in New Issue