| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…notification setting, avoid revealing main window after OCR, restore macOS diagnostics bindings
| Back | FazBrowse Home | New Git URL |
Summary
Adds scrolling capture: a new hotkey action ("Scrolling capture of window under cursor", unbound by default) that captures an entire scrollable window — not just the visible part — by scrolling it and stitching the frames into one tall screenshot, saved as a normal Cap screenshot project.
How it works (scrolling_capture.rs):
capture window frame loop (≤60 steps, ≤16000px): inject 2 wheel notches at the cursor (SendInput on Windows, CGEventCreateScrollWheelEvent2 on macOS) → wait 600ms for smooth-scroll to settle → capture next frame → detect vertical offset: minimal mean-absolute-difference over overlapping rows (top 20% skipped for sticky headers, ≥25% overlap required, 1px granularity) → offset == 0 (bottom reached) or no match → stop → append the frame's new bottom rows to the stitched imageShowcase
A 60-section page captured into one 1280x7404 image:
Bottom of the stitch — capture stops at the page footer with no repeated content:
Testing (Windows, end-to-end on a live dev build)
macOS compiles the same capture/stitch path with a CoreGraphics scroll-event injector; runtime-tested on Windows only.
Builds on #2095 (OCR text capture — shares its capture/save helpers); the scrolling-capture change itself is the top two commits.
Greptile Summary
This PR adds window scrolling capture, OCR area capture, associated hotkeys and settings, and refactors screenshot capture/saving into reusable backend helpers.
Confidence Score: 3/5
The PR should not merge until scrolling captures are capped before appending oversized strips and the Linux action is either implemented or disabled.
Near-limit captures can produce images rejected by the screenshot editor, while Linux exposes an action whose scroll injector performs no operation and therefore cannot capture off-screen content.
Files Needing Attention: apps/desktop/src-tauri/src/scrolling_capture.rs, apps/desktop/src/routes/(window-chrome)/settings/hotkeys.tsx, apps/desktop/src/utils/tauri.ts
Important Files Changed
Reviews (1): Last reviewed commit: "Tune scrolling capture stepping and matc..." | Re-trigger Greptile
Context used (3)