bugfix: clamp scroll offsets