Merge pull request #799 from chrox/new_ui_code

bugfix: clamp scroll offsets
comments for clamping scroll offsets