zurdiandClaude Opus 4.7 14a6ae7c46 refactor(frontend-v2): custom virtualizer + per-row dwell + sticky toolbar
Big rearchitecture of the gallery infinite-scroll. Three problems with
the prior Vuetify-v-virtual-scroll-based implementation drove this:

1. Scroll freeze on window resolve — dynamic-height re-measurement plus
   the prior virtualItems computed re-running end-to-end on every
   byPosition change locked the main thread hard enough to eat scroll
   input.
2. AlphaStrip jumps landing on the wrong letter — v-virtual-scroll
   estimates scrollTop from average measured item height, which skewed
   when most items were unmeasured skeletons. Click "N", land short.
3. Aggressive per-row prefetch on fast scroll — the IntersectionObserver
   fired per-row crossing, queueing 72-item windows for rows the user
   was just flying past.

Architecture:

- `RVirtualScroller` rewritten as a custom virtualizer (~210 lines).
  Owns a prefix-sum offset table built from `getItemHeight(item)`, so
  `scrollToIndex` is just `containerEl.scrollTop = offsets[idx]` — no
  estimation, no drift, exact landing on AlphaStrip jumps. Items render
  with `transform: translateY(<offset>px)`. Configurable overscan
  (default 25 per side ≈ 50 + visible). Emits `viewportRange` (items
  whose pixel rect actually intersects the viewport — NOT the rendered
  overscan) so consumers can wire AlphaStrip / dwell off "what the user
  is actually looking at right now".
- `galleryItemHeight` per-kind table on `useGalleryVirtualItems`. Hero
  280, toolbar 64, letter-header 56, row 254, list-table 1200,
  load-more 80, empty 240, skeleton-row 254. Drives the offset math.
- `byPosition` mutated in place (no Map reassignment) — Vue 3's reactive
  Map triggers per-key dependents; an arriving window only re-renders
  the rows holding the just-resolved positions, not the full list.
- AlphaStrip lit letters + currentLetter derive from `viewportRange`
  (computed) — exactly what's on screen, not what's in the rendered
  overscan band.
- Per-row dwell prefetch: each visible row arms its own 2s timer.
  Fast-scroll / AlphaStrip fly-by leaves zero fetches in flight; pausing
  on a region for 2s fires per-row range fetches in parallel. Each row
  asks for exactly its 8 positions via the new
  `galleryRoms.fetchRange(offset, limit)`, so 4 visible rows resolve
  independently and stream into the DOM as their requests come back.
- Sticky header-dock toolbar: when the inline GalleryToolbar scrolls
  past the threshold (~hero height), a fixed copy slides in from above
  with a 240ms ease-out, sharing the same handlers/state. Falls back to
  the inline behaviour for `floating` dock (already always visible).
- Removed the IntersectionObserver / MutationObserver / per-batch
  rAF-prefetch scaffolding; the dwell + viewport-range pair replaces
  both responsibilities.

Manual browser validation pending. Letter ordering tweaked
(`#` first → AlphaStrip), skeleton label spacing nudged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 14:08:22 +00:00
2026-03-08 10:27:01 -04:00
2026-04-12 11:04:12 -04:00
2026-04-15 19:20:17 -04:00
2025-07-03 23:37:00 -03:00
2024-05-21 19:22:14 -04:00
2026-01-02 17:58:19 +00:00
2026-04-03 10:54:31 -04:00
2026-04-18 16:18:46 -04:00
2024-02-11 16:41:36 +01:00
2026-04-01 20:49:08 -04:00
2024-07-09 13:43:14 +02:00

romm logo

A beautiful, powerful, self-hosted ROM manager and player.

discord-badge-img docs-badge-img license-badge-img release-badge-img docker-pulls-badge-img

Overview

RomM (ROM Manager) allows you to scan, enrich, browse and play your game collection with a clean and responsive interface. With support for multiple platforms, various naming schemes, and custom tags, RomM is a must-have for anyone who plays on emulators.

Features

  • Scan and enhance your game library with metadata from IGDB, Screenscraper and MobyGames
  • Fetch custom artwork from SteamGridDB
  • Display your achievements from Retroachievements
  • Metadata available for 400+ platforms
  • Play games directly from the browser using EmulatorJS and RuffleRS
  • Share your library with friends with limited access and permissions
  • Official apps for Playnite, Android and CFWs
  • Supports multi-disk games, DLCs, mods, hacks, patches, and manuals
  • Parse and filter by tags in filenames
  • View, upload, update, and delete games from any modern web browser

Preview

🖥 Desktop 📱 Mobile
desktop preview mobile preview

Installation

To start using RomM, check out the Quick Start Guide in the docs. If you are having issues with RomM, please review the page for troubleshooting steps.

Contributing

To contribute to RomM, please check Contribution Guide.

Community

Here are a few projects maintained by members of our community. Please note that the RomM team does not regularly review their source code.

Mobile

Desktop

Handhelds

Other

[🔷] Official first-party app

Join us on Discord, where you can ask questions, submit ideas, get help, showcase your collection, and discuss RomM with other users.

discord-invite-img

Technical Support

If you have any issues with RomM, please open an issue in this repository.

Financial Support

Consider supporting the development of this project on Open Collective. All funds will be used to cover the costs of hosting, development, and maintenance of RomM.

oc-donate-img

Our Friends

Here are a few projects that we think you might like:

  • EmulatorJS: An embeddable, browser-based emulator
  • RetroDECK: Retro gaming on SteamOS and Linux
  • ES-DE Frontend: Emulator frontend for Linux, macOS and Windows
  • Gaseous: Another ROM manager with web-based emulator
  • Retrom: A centralized game library/collection management service
  • Drop: Steam-like experience for DRM-free games
  • LanCommander: Digital game platform for PC games
  • Steam ROM Manager: An app for managing ROMs in Steam

hackernews badge   selfh.st badge   Aikido Security Audit Report
S
Description
No description provided
Readme AGPL-3.0
505 MiB
0 Stars 1 Watchers 0 Forks
Languages
Python 50.1%
Vue 40.3%
TypeScript 7.2%
CSS 0.9%
Shell 0.6%
Other 0.8%