diff --git a/cocos/ui/scroll-view.ts b/cocos/ui/scroll-view.ts index 385a93bc4fd..34ee495c7a9 100644 --- a/cocos/ui/scroll-view.ts +++ b/cocos/ui/scroll-view.ts @@ -1006,7 +1006,7 @@ export class ScrollView extends ViewGroup { // eslint-disable-next-line @typescript-eslint/no-this-alias const self = this; - if (self.enabledInHierarchy) { + if (!self.enabledInHierarchy) { return; }