fix(sidebar): allow vertical scrolling in mobile agent list
Changed from Gesture.Simultaneous() to Gesture.Race() so that vertical scroll and horizontal swipe-to-close are mutually exclusive based on initial movement direction. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
c5dddeb2e0
commit
3033685aab
@@ -206,7 +206,10 @@ export function SlidingSidebar({ selectedAgentId }: SlidingSidebarProps) {
|
|||||||
isGesturing.value = false;
|
isGesturing.value = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
const swipeGesture = Gesture.Simultaneous(
|
// Use Race so that whichever gesture activates first wins - if vertical scroll
|
||||||
|
// happens first (via Native), the Pan gesture fails; if horizontal swipe
|
||||||
|
// happens first, Pan wins and closes the sidebar
|
||||||
|
const swipeGesture = Gesture.Race(
|
||||||
isOpen ? closeGesture : openGesture,
|
isOpen ? closeGesture : openGesture,
|
||||||
Gesture.Native()
|
Gesture.Native()
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user