McGill-CSB / PHYLO

a gaming framework to align genomic data
phylo.cs.mcgill.ca/edge
Other
11 stars 14 forks source link

Revert to best alignment interacts poorly with undo/redo buttons #107

Open rasmus-storjohann opened 10 years ago

rasmus-storjohann commented 10 years ago

Steps to reproduce problem:

  1. Start a new puzzle
  2. Move some blocks to get a good alignment
  3. Make an additional change the leads to a reduction in score
  4. Hit the "revert to best alignment" button

Observed behaviour: The forward button is greyed out, and the backward button takes me to a surprising state. Expected behaviour: The "revert to best alignment" button should be equivalent to hitting the undo button repeatedly until I get to my best alignment. From that state, the undo and redo buttons should take me respectively to the states preceding and following that state in my history.

A related point: If my history contains multiple states that are tied for the best score, then the revert to best should cycle through all the states with this high score, to let me pick the one I like best.