kphurley / stanscards

A barebones tabletop to play Marvel Champions in your browser
0 stars 1 forks source link

Drawing/discarding cards moves draggables around in weird ways #34

Open kphurley opened 1 year ago

kphurley commented 1 year ago

For some reason when we move cards between areas (drawing/discarding), the draggables do weird things, resetting their positions in ways that is very annoying.

Moving a card from one pile to another should not affect the position of any draggable item.

Related to this - sometimes the tokens disappear completely when drawing cards, then reappear after another action happens (a state change?).

Fixing this might require that the mechanism we use to drag cards be looped into the application state.

kphurley commented 1 year ago

We need to control the Draggable state more directly. Everything that uses Draggable needs to have it's position in the application state, that should fix this. That's kind of a big task, but one I think is needed before we release.

kphurley commented 5 months ago

I'm taking a fresh look at this and I even wonder if anything should be draggable. Having dedicated zones for things and keeping track of everything that way feels like a better solution here than allowing everything to be draggable.