Skip to content

[syncfusion_flutter_pdfviewer] - Scrollbar track does not respond to tap/click to jump to position #2502

@BennyKirschner

Description

@BennyKirschner

Use case

The DesktopScrollbar used by SfPdfViewer on desktop platforms does not support clicking on the scrollbar track to jump to that scroll position. Currently, the scrollbar only supports dragging the thumb.

Expected Behavior
Clicking on the scrollbar track (outside the thumb) should jump the scroll position to the corresponding location in the document, consistent with native scrollbar behavior on Windows, macOS, and Linux.

Current Behavior
Clicking on the scrollbar track does nothing. Only dragging the thumb moves the scroll position.

Proposal

In desktop_scrollbar.dart, the GestureDetector only wraps the scrollbar thumb Container and only handles onVerticalDragStart/onVerticalDragUpdate/onVerticalDragEnd. There is no tap handler on the track area. The MouseRegion wrapping the track provides hover/cursor behavior but no tap interaction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions