pulling in some changes done on project that use this.
fix repeat count.
Touch scrolling support.
tidy up scrolling support.