added optional binding to scrollbar instead of cursor