Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ユーザーがタッチ スクリーンを使用しているかどうかを検出するにはどうすればよいですか? これは、Python/Django または JavaScript で行うことができます。
function is_touch_device() { return !!('ontouchstart' in window) || !!('onmsgesturechange' in window); };