Drag and drop colour change on snap return to initial position
Feb 28, 2022
I've created a drag and drop for the learner to sort their top 5 and bottom 5 from 30 choices, with the relevant two targets. The tool assigns one as 'correct' and the other 'incorrect'. The drag boxes change colour when dropped. using states. If the learner wants to change their mind, and return the box to the rest to make another choice [highly likely in this exercise] I've snapped the box to initial position. So far, so good. But the box changes state to 'incorrect' so retains that colour, even if dragged back from the 'correct' target. I can understand why that happens, but can't find a workaround. I tried a trigger that changed the box to the initial state on the user clicking; it worked, but only until the mouse is released, then it changes back to the 'incorrect' colour.
Does anyone have a solution other than giving up on the colour change? I could have lived with their retaining the colour of the initial target, but not all turning 'incorrect'.