投稿のURLプレビューポップアップを改良 (#6226)
* URLプレビューポップアップを改良 - タッチデバイスでは表示しないように - 幅をレスポンシブに * Use maxTouchPoints to detect touch device * fix
This commit is contained in:
parent
916512fd47
commit
96eab7e12b
4 changed files with 11 additions and 1 deletions
3
src/client/scripts/is-device-touch.ts
Normal file
3
src/client/scripts/is-device-touch.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export function isDeviceTouch(): boolean {
|
||||
return 'maxTouchPoints' in navigator && navigator.maxTouchPoints > 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue