Reset on change, not on table edit

On slide 10, how can i get my displayed weight value to remain when editing the table, but change when the slider in the graph is dragged to change the number of oranges.

Currently, the total weight disappears once any cell has focus in the table.

I believe you’ll need to use pressCount instead of timeSincePress()

timeSincePress() resets when a table cell gets focus. pressCount would remain constant.

1 Like

Thanks, I’ve toyed with this idea.

I wanted to have the button change style and label for the duration of the animation, but that is mostly unnecessary cosmetic stuff. It’ll get cut.

You could hide the button for a certain duration and insert a new note component that shows the animations. Once the animation is over, the button reappears and the note is hidden again.

1 Like

Thanks to both of you, I took both of your suggestions and now we have functioning experiment.

Here is the current example for other searching this (slide 10)

1 Like

Thank you so much for posting this! It’s exactly what I needed to make my animation appear to stay completed once students start entering values in a table.