Fix scrolling emitting events.
jshint/beautify