Skip to content

Commit 596c664

Browse files
authored
Merge pull request #354 from nativescript-community/fix/accessibilty-scroll
fix(tabs): also disable accessibilty swipe when swipe is disabled
2 parents 12cd033 + 8ac6236 commit 596c664

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tabs/tabs.ios.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ class UIPageViewControllerImpl extends UIPageViewController {
9494
return handler;
9595
}
9696

97+
public accessibilityScroll(direction: UIAccessibilityScrollDirection): boolean {
98+
if (this._owner.get()?.swipeEnabled ?? true) {
99+
return super.accessibilityScroll(direction);
100+
}
101+
return false;
102+
}
103+
97104
public viewDidLoad(): void {
98105
const owner = this._owner.get();
99106

0 commit comments

Comments
 (0)