A finger sliding a card up the page could be taken by the browser for scrolling, the bounce or pull-to-refresh (or a long press for selecting text), which cancels the drag and the card goes back into the hand. The page now hands every touch to the app (touch-action: none, overscroll-behavior: none, no selection or callout). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4031197ac1
commit
8f5211cb2d
1 file changed
+8
@@ -11,6 +11,14 @@
|
||||
<link rel="manifest" href="manifest.webmanifest">
|
||||
<style>
|
||||
html, body { margin: 0; height: 100%; overflow: hidden; background: #0A281B; }
|
||||
/* The app handles every touch itself (dragging a card onto the table): the browser must not take a finger
|
||||
sliding over the page for scrolling, pull-to-refresh or zooming, which cancels the drag, nor a long press
|
||||
for selecting text. */
|
||||
html, body, canvas {
|
||||
touch-action: none; overscroll-behavior: none;
|
||||
-webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
body { background: radial-gradient(circle at 50% 45%, #2F7F57 0%, #1D5C3D 45%, #0A281B 100%); }
|
||||
#loading {
|
||||
position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
|
||||
|
||||
Reference in new issue
Block a user