invalidate when pinned state changed

Fixes https://github.com/f2prateek/progressbutton/issues/34