adding support for negative scrolling.