fixed a bug. made it work better if there is padding on the scrollContainer