]> git.cworth.org Git - lmno.games/commit
Rework touch drag operation to render dragging tile as a React component
authorCarl Worth <cworth@cworth.org>
Fri, 6 Mar 2026 22:06:06 +0000 (17:06 -0500)
committerCarl Worth <cworth@cworth.org>
Sat, 7 Mar 2026 13:19:16 +0000 (08:19 -0500)
commite240e05894a4e22b443218be8a10cec5d57bb868
tree2150cae3709422b03f54f404f34af8b181cff471
parentf48f525ba6c1701f377bf83a65c883d499a7697f
Rework touch drag operation to render dragging tile as a React component

We encountered a bug where a touch drag operation was interrupted, by
some operation, leaving a ghost tile left around half-way through the
drag operation. One option to fix this would be to implement a
tounchCancel handler to clean things up.

But an alternate approach, in this commit, is to render the tile being
dragged as a React component. This way, everything is rendered
uniformly as React components, and we have less dependence on precise
browser semantics with respect to touchCanel, etc.
letterrip/letterrip.jsx