Skip to content

Commit 8ac6236

Browse files
committed
fix(tabs): also disable accessibilty swipe when swipe is disabled
1 parent 12cd033 commit 8ac6236

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)