Drag-to-scroll not working on scroll panels #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
FastVScrollwas updated to implementdesktop.Mouseableandfyne.Draggablefor click-and-drag scrolling, but the innercontainer.VScrollcaptures mouse events before the outer widget sees them. Drag events never reachFastVScroll.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
FastVScrollwidget never receivesMouseDown,Dragged, orDragEndcalls.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.Scrolldirectly to add drag handling internally.Affected file
internal/ui/components.go�FastVScroll