| 409 | } |
| 410 | |
| 411 | Vec2 ScrollView::maxContainerOffset() |
| 412 | { |
| 413 | Point anchorPoint = _container->isIgnoreAnchorPointForPosition() ? Point::ZERO : _container->getAnchorPoint(); |
| 414 | float contW = _container->getContentSize().width * _container->getScaleX(); |
| 415 | float contH = _container->getContentSize().height * _container->getScaleY(); |
| 416 | |
| 417 | return Vec2(anchorPoint.x * contW, anchorPoint.y * contH); |
| 418 | } |
| 419 | |
| 420 | Vec2 ScrollView::minContainerOffset() |
| 421 | { |