mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-08 22:33:24 +00:00
Improve touch detection
This commit is contained in:
@@ -55,7 +55,7 @@ export default class Coriolis extends React.Component {
|
||||
|
||||
this.emitter = new EventEmitter();
|
||||
this.state = {
|
||||
noTouch: !window.ontouchstart && !navigator.MaxTouchPoints && !navigator.msMaxTouchPoints,
|
||||
noTouch: !('ontouchstart' in window || navigator.msMaxTouchPoints || navigator.maxTouchPoints),
|
||||
page: null,
|
||||
language: getLanguage(Persist.getLangCode()),
|
||||
route: {},
|
||||
|
||||
Reference in New Issue
Block a user