From ee6824de13585adc65300f42be4d8812e6625bb5 Mon Sep 17 00:00:00 2001 From: evanpelle Date: Sun, 6 Oct 2024 13:21:32 -0700 Subject: [PATCH] disable select and double-tap zoom on mobile --- TODO.txt | 6 ++---- src/client/styles.css | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/TODO.txt b/TODO.txt index 2fe06560f..496fa9230 100644 --- a/TODO.txt +++ b/TODO.txt @@ -158,17 +158,15 @@ * Auto deploy to dev on commit DONE 10/2/2024 * add emoji button DONE 10/4/2024 * make disabled icon crossed out icon DONE 10/6/2024 -* disable select on mobile -* disable double tap on mobile +* disable select on mobile DONE 10/6/2024 +* disable double tap on mobile DONE 10/6/2024 * donate troops button * Make fake humans spawn by their country -* BUG: double tap zooms on mobile * fake humans target enemies * create private lobby menu * block user inputs if too far behind server * BUG: FakeHuman don't be enemy if don't share border (or send boat) * store cookies -* BUG: names dissapear on bottom of screen * UI: leader board * Load terrain dataImage in background * BUG: half encircle Antartica causes capture diff --git a/src/client/styles.css b/src/client/styles.css index 2ad01f0d7..2ad481bad 100644 --- a/src/client/styles.css +++ b/src/client/styles.css @@ -1,3 +1,19 @@ +html, +body { + touch-action: manipulation; + -ms-touch-action: manipulation; +} + +* { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + + @font-face { font-family: 'Overpass'; src: url('/resources/fonts/overpass.woff') format('woff');