From dabf1100c97fb5ba2402d1f72b2ce52c8374b23e Mon Sep 17 00:00:00 2001 From: JoshHeaps Date: Mon, 31 Aug 2026 21:54:56 -0600 Subject: [PATCH] Add double-tap and press-and-hold shortcuts to the seats MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Folding someone meant opening their editor, finding the Fold box, ticking it, and dismissing the sheet — four interactions for the thing that happens most often in a hand. Double-tap a seat to fold, and again to put them back. Press and hold for a quick menu of everything else you do to one player: fold, all-in, sit out or deal in, hand them the button, or open the full editor. Both are undoable the same way the header buttons are, because a gesture is easier to fire by accident than a button. The single tap now waits out the double-tap window before opening the editor — a fifth of a second of latency on opening a form, in exchange for a fold that doesn't also fling a sheet up over the table. A press that moves is a drag, so the hold is cancelled and swapping seats still works, and the puck shrinks slightly while held so a press that's being counted looks different from one that's being ignored. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_015bnp7xKUPFFSpwkYNFaPgb --- JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml | 13 ++ JoshHeaps.Net/wwwroot/css/casino/holdem.css | 100 ++++++++++++++- .../wwwroot/js/casino/holdem/main.js | 58 +++++++++ .../wwwroot/js/casino/holdem/render.js | 119 ++++++++++++++++-- .../wwwroot/js/casino/holdem/seatMenu.js | 77 ++++++++++++ 5 files changed, 354 insertions(+), 13 deletions(-) create mode 100644 JoshHeaps.Net/wwwroot/js/casino/holdem/seatMenu.js diff --git a/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml b/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml index 53ed580..38022df 100644 --- a/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml +++ b/JoshHeaps.Net/Pages/Casino/TexasHoldem.cshtml @@ -230,6 +230,18 @@ + +