From: Carl Worth Date: Sun, 8 Mar 2026 15:44:45 +0000 (-0400) Subject: anagrams: Allow clicking on a word to steal it X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=46182c5fe62856ae8abdb44e14e2a8aa8071d5d4;p=lmno.games anagrams: Allow clicking on a word to steal it In addition to dragging the word, which was already supported. --- diff --git a/anagrams/anagrams.jsx b/anagrams/anagrams.jsx index 09e5f04..84197bc 100644 --- a/anagrams/anagrams.jsx +++ b/anagrams/anagrams.jsx @@ -47,7 +47,8 @@ function WordDisplay(props) { return (
+ onDragStart={stealable ? onSteal : null} + onClick={stealable ? onSteal : null}> {word.word.split("").map((letter, i) => ( ))}