web: let a wheel tick walk the strip sideways

This commit is contained in:
2026-09-28 19:44:25 +07:00
parent 2c78ff80e8
commit bd206a8be9
2 changed files with 25 additions and 1 deletions
+9 -1
View File
@@ -592,7 +592,15 @@ export function Library() {
{/* The strip: one thumbnail per frame the open node holds, in the
order the catalogue reads them (newest shutter first). */}
{view === 'preview' ? (
<div className="adm-filmstrip" data-key="lib-strip">
<div
className="adm-filmstrip"
data-key="lib-strip"
// A wheel has no sideways axis, so a plain tick over the strip
// walks the frames along it. Nothing else there can scroll.
onWheel={(e) => {
if (!e.deltaX) e.currentTarget.scrollLeft += e.deltaY;
}}
>
{shown.map((photo) => (
<button
key={photo.id}