mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 17:23:44 +08:00
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();
|
||||
}
|
||||
function hasTouchCapabilities() {
|
||||
return navigator.maxTouchPoints > 0;
|
||||
return navigator.maxTouchPoints > 1 || "ontouchstart" in window;
|
||||
}
|
||||
|
||||
export default function createDTooltip(target, content) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user