| 418 | } |
| 419 | |
| 420 | Vec2 ScrollView::minContainerOffset() |
| 421 | { |
| 422 | Point anchorPoint = _container->isIgnoreAnchorPointForPosition() ? Point::ZERO : _container->getAnchorPoint(); |
| 423 | float contW = _container->getContentSize().width * _container->getScaleX(); |
| 424 | float contH = _container->getContentSize().height * _container->getScaleY(); |
| 425 | |
| 426 | return Vec2(_viewSize.width - (1 - anchorPoint.x) * contW, _viewSize.height - (1 - anchorPoint.y) * contH); |
| 427 | } |
| 428 | |
| 429 | void ScrollView::deaccelerateScrolling(float /*dt*/) |
| 430 | { |