Skip to content

Commit

Permalink
Issue 418: disable invalid touch events check.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzohrab committed May 13, 2024
1 parent 6790ffc commit aefdbad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lute/static/js/lute.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,12 @@ const _isUserUsingMobile = () => {
isMobile = (s.width < 980);
}

// Disabling this check - see https://stackoverflow.com/a/4819886/1695066
// for the many cases where this fails.
// Touch events method
if (!isMobile) {
isMobile = (('ontouchstart' in window) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0));
}
// if (!isMobile) {
// isMobile = (('ontouchstart' in window) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0));
// }

// CSS media queries method
if (!isMobile) {
Expand Down

0 comments on commit aefdbad

Please sign in to comment.