From a1f02081c11d4c652858e828e1bab97dac9738bf Mon Sep 17 00:00:00 2001 From: goldbuick Date: Tue, 31 Dec 2024 22:02:02 -0500 Subject: [PATCH] better feedback --- zss/gadget/touchui/component.tsx | 4 ++-- zss/gadget/touchui/controls.tsx | 40 +++++++++++++++++++++++++++++--- zss/gadget/touchui/surface.tsx | 20 +++++++++++----- 3 files changed, 53 insertions(+), 11 deletions(-) diff --git a/zss/gadget/touchui/component.tsx b/zss/gadget/touchui/component.tsx index 8201c6e1..0b799a14 100644 --- a/zss/gadget/touchui/component.tsx +++ b/zss/gadget/touchui/component.tsx @@ -68,7 +68,7 @@ export function TouchUI({ width, height, islandscape }: TouchUIProps) { 6) { + if (movestick.tipx !== -1 || motion.length() > 3) { const snapdir = snap(radToDeg(motion.angle()), 45) // track for visuals movestick.tipx = cx