Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: enable trackpad/wheel scrolling in embedded search results

Louis Beaumont2a6c8f50b588
diff --git a/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx b/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx
index 7af8fbe7b..af4fe0884 100644
--- a/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/search-modal.tsx
@@ -1724,6 +1724,14 @@ export function SearchModal({ isOpen, onClose, onNavigateToTimestamp, embedded =
<div
ref={gridRef}
className="flex-1 min-h-0 overflow-y-auto p-4 overscroll-contain touch-pan-y"
+ onWheel={(e) => {
+ e.stopPropagation();
+ const target = e.currentTarget;
+ const isAtTop = target.scrollTop === 0 && e.deltaY < 0;
+ const isAtBottom = target.scrollTop + target.clientHeight >= target.scrollHeight && e.deltaY > 0;
+ if (isAtTop || isAtBottom) e.preventDefault();
+ }}
+ onTouchMove={(e) => e.stopPropagation()}
onScroll={handleScroll}
>
{renderResults()}