Fix some bugs in $().animate and guesture events.