Skip to content

Commit 03ce40d

Browse files
committed
Fix oversight
1 parent 338d16d commit 03ce40d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Navigator/DirectionalNavigationAdapter.swift

+4
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ public final class DirectionalNavigationAdapter {
125125
/// It will automatically observe pointer and key events to turn pages.
126126
@MainActor public func bind(to navigator: VisualNavigator) {
127127
for pointerType in PointerType.allCases {
128+
guard pointerPolicy.types.contains(pointerType) else {
129+
continue
130+
}
131+
128132
switch pointerType {
129133
case .touch:
130134
navigator.addObserver(.tap { [self, weak navigator] event in

0 commit comments

Comments
 (0)