added onScroll callback

Just like the onSelect callback, an onScroll callback would come in very handy (and is very simple to add to the exisiting code).