Enabling scrolling and taking care of scroll offsets