Prevent scrolling propagation.

Added option to prevent scrolling when reaching the end or start of scroll container.