This commit is contained in:
altalk23 2024-02-18 19:14:58 +03:00
parent 5c8ee29cd3
commit 5b9393d0e7

View file

@ -30,7 +30,7 @@ void ScrollLayer::visit() {
if (this->getParent()) {
CCPoint const offset = this->isIgnoreAnchorPointForPosition()
? ccp(0, 0) : this->getContentSize() * -this->getAnchorPoint();
? ccp(0, 0) : CCPoint(this->getContentSize() * -this->getAnchorPoint());
auto const bottomLeft = this->convertToWorldSpace(ccp(0, 0) - offset);
auto const topRight = this->convertToWorldSpace(this->getContentSize() - offset);