Added functionality to allow stickiness in a scrolling element