StanfordHCI / flash-teams

2 stars 0 forks source link

Interactions are properly deleted #176

Closed tdoshi closed 10 years ago

tdoshi commented 10 years ago
ato1120 commented 10 years ago

Buggy - interactions don't load properly on refresh, are all deleted.

tdoshi commented 10 years ago

Fixed the problem, I think! let me know if things still don't work

ato1120 commented 10 years ago

Fixed for handoffs, still having persistence problems with collaborations.

Ex. Draw two events, add a collaboration, refresh, the collaboration doesn't render, but it is still in the data, can't draw a new interaction between the events.

ato1120 commented 10 years ago

Ah, it might just be the most recently drawn interaction AFTER a collaboration is drawn as well? Just replicated the bad reload for handoffs as well. I could keep looking into it, but basically, still buggy?

ato1120 commented 10 years ago

Found the (hopefully) final problem!!

The variable "intId" is used in awareness.js in drawInteraction to loop over first the "remainingHandoffs" and then the "remainingCollabs" which are found separately to delete old ones and redraw. "intId" was not re-initialized on the "remainingCollabs" loop and thus would delete a handoff. So on page load, a handoff would be missing.

mgoulder commented 10 years ago

Still buggy :((

Not sure I can exactly figure out what behavior causes the interactions/handoffs to not persist on reload, but here's what I've observed: