diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-15 14:49:08 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-15 14:49:08 +0100 |
| commit | a7bd63b1fc2b573141677da2d613c2a84455260e (patch) | |
| tree | f09d77541d6d99f986b9ea5f3197c583f9698e88 /tools/timeline_editor | |
| parent | b464969cd1f5dd4dceb996ad8410e2695ab477c4 (diff) | |
fix(timeline-editor): enable mouse wheel on all sequence viewer elements
Wheel events now work when hovering over sequence boxes and effects,
not just the timeline background.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'tools/timeline_editor')
| -rw-r--r-- | tools/timeline_editor/index.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/timeline_editor/index.html b/tools/timeline_editor/index.html index 4131782..4efbcd8 100644 --- a/tools/timeline_editor/index.html +++ b/tools/timeline_editor/index.html @@ -485,6 +485,7 @@ seqDiv.addEventListener('mousedown', e => startDrag(e, 'sequence', seqIndex)); seqDiv.addEventListener('click', e => { e.stopPropagation(); selectItem('sequence', seqIndex); }); seqDiv.addEventListener('dblclick', e => { e.stopPropagation(); e.preventDefault(); seq._collapsed = !seq._collapsed; renderTimeline(); }); + seqDiv.addEventListener('wheel', e => viewportController.handleWheel(e), { passive: false }); dom.timeline.appendChild(seqDiv); if (!seq._collapsed) { const conflicts = detectConflicts(seq); @@ -515,6 +516,7 @@ if (!e.target.classList.contains('effect-handle')) { e.stopPropagation(); startDrag(e, 'effect', seqIndex, effectIndex); } }); effectDiv.addEventListener('click', e => { e.stopPropagation(); selectItem('effect', seqIndex, effectIndex); }); + effectDiv.addEventListener('wheel', e => viewportController.handleWheel(e), { passive: false }); dom.timeline.appendChild(effectDiv); }); } |
