Drag-to-scroll not working on scroll panels #19

Closed
opened 2026-03-12 23:58:13 +00:00 by stu · 0 comments
Owner

Description

FastVScroll was updated to implement desktop.Mouseable and fyne.Draggable for click-and-drag scrolling, but the inner container.VScroll captures mouse events before the outer widget sees them. Drag events never reach FastVScroll.Dragged, so the feature has no effect.

Expected behaviour

Users should be able to click and drag content up/down to scroll, mirroring mobile/touch-screen behaviour.

Current behaviour

Drag events are consumed by the inner scroll container. The outer FastVScroll widget never receives MouseDown, Dragged, or DragEnd calls.

Suggested fix

Replace the current approach with a transparent drag-capture overlay layered on top of the scroll container, or intercept events at the renderer level. Alternatively, subclass container.Scroll directly to add drag handling internally.

Affected file

internal/ui/components.goFastVScroll

## Description `FastVScroll` was updated to implement `desktop.Mouseable` and `fyne.Draggable` for click-and-drag scrolling, but the inner `container.VScroll` captures mouse events before the outer widget sees them. Drag events never reach `FastVScroll.Dragged`, so the feature has no effect. ## Expected behaviour Users should be able to click and drag content up/down to scroll, mirroring mobile/touch-screen behaviour. ## Current behaviour Drag events are consumed by the inner scroll container. The outer `FastVScroll` widget never receives `MouseDown`, `Dragged`, or `DragEnd` calls. ## Suggested fix Replace the current approach with a transparent drag-capture overlay layered on top of the scroll container, or intercept events at the renderer level. Alternatively, subclass `container.Scroll` directly to add drag handling internally. ## Affected file `internal/ui/components.go` � `FastVScroll`
stu closed this issue 2026-03-25 09:10:44 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
leak_technologies/VideoTools#19
No description provided.