From 95764afa6539cd7c4ccf6058ce15832d59855cf2 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Thu, 22 Jul 2021 17:42:04 +0200 Subject: added directional particles toggle --- pages/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index 1630835..469d985 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -277,7 +277,6 @@ export interface TweakProps { } export const Tweaks = function (props: TweakProps) { const { physics, setPhysics, threeDim } = props - return ( setPhysics({ ...physics, labels: physics.particles ? 0 : 1 })} + onChange={() => setPhysics({ ...physics, particles: physics.particles ? 0 : 1 })} >