spacedriveapp / spacedrive

Spacedrive is an open source cross-platform file explorer, powered by a virtual distributed filesystem written in Rust.

Home Page:https://spacedrive.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quick preview for text files repeats content infinitely

AcrylicShrimp opened this issue · comments

Describe the bug

When selecting a text file and press space to show quick preview for it, the preview repeats content forever.

Consider the file on the preview:

스크린샷 2024-03-24 오후 2 37 59

Actually, the file only has 60 lines of code.

스크린샷 2024-03-24 오후 2 39 10

Reproduction

  1. Select any (preview-able) text file on the app.
  2. Press space to call preview window.
  3. Scroll down a bit.
  4. It now repeats the content.

Expected behavior

When it reaches the end of file, it shouldn't allow the window to scroll down.

Platform and versions

OS: macOS 14.4(23E214)
App: Version 0.2.6 (20240323.050027)

I'm not attaching versions of "pnpm", "cargo" and/or "rustc" because I downloaded the app from the release page, not building from source.

Stack trace

N/A

Additional context

N/A