I recently voted on a question on SO, then reconsidered my vote as there was subtleties that were not needed. When I went to retract my vote in the normal way by clicking the opposite arrow, the vote jumped from 1
to -1
without going to 0
. That was quite a surprise.
After trying again just to make sure a simultaneous additional downvote wasn't received at the same time by utter coincidence, it became clear this was the behavior of the two buttons.
Poking around, the "click again to undo" tooltip displayed - Huh? That provided the solution but brought up this question:
What design pattern justifies using the same button on what is essentially a spin-button to undo?
I've used the web since before Mosiac appeared and used many desktop UI toolkits and have never seen that behavior before. Is there a specific pattern that says that makes sense? If so, where is it documented? If not, why do we do it that way?