made state changes sticky

you can specify how long after the state (shaking or not) changes
before making the sttyle change