add spinner support

fixed a bug that makes spinner event invalid