web: let a wheel tick walk the strip sideways
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user