Skip to content

Allow scrolling to be customizable for SfPdfViewer #2359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
walsha2 opened this issue May 25, 2025 · 2 comments
Closed

Allow scrolling to be customizable for SfPdfViewer #2359

walsha2 opened this issue May 25, 2025 · 2 comments
Labels
feature New feature follow-up scheduled Follow-up scheduled pdf viewer PDF viewer component uncertain Uncertain feature

Comments

@walsha2
Copy link

walsha2 commented May 25, 2025

Use case

This request is to allow for scrolling control over the SfPdfViewer so that we can customize the way users interact with this widget.

Proposal

Scrollbars

For the SfPdfViewer it seems like there is a custom scrollbar that is build by this package: DesktopScrollbar. This builds its own scrollbar, but it does not look like there is anyway to customize any of the look and feel of this scrollabar externally (.e.g color or width). Both of these values seem to be hardcoded. It would be great if these were exposed. Similarly, exposing the following properties of DesktopScrollbar would be helpful as well!

  • canShowVerticalScrollbar
  • canShowHorizontalScrollbar

Scrolling

Is there a way to disable scrolling altogether? I want to only render a PDF page by page and allow for navigation through controls to jump to any specific page (not by mouse). I could not find a way to disable scrolling for this widget besides ignoring the pointer events which seems like overkill. Even if I absorbed the pointer events to prevent scrolling, the scrollbars are still visible (see above).

@VijayakumarMariappan VijayakumarMariappan added pdf viewer PDF viewer component open Open labels May 26, 2025
@immankumarsync
Copy link
Contributor

Hi @walsha2,
At present, the Syncfusion Flutter PDF Viewer does not support hiding or customizing scrollbars on desktop platforms. We are currently analyzing the feasibility of this feature and will provide further updates on May 29, 2025.

Regarding the request to disable scrolling in the PDF Viewer, this functionality is not supported. Scrolling is a fundamental aspect of navigating multi-page documents and restricting it could negatively impact the overall user experience and accessibility—particularly when working with longer or more complex documents. Additionally, we could not find any references or common practices supporting the disabling of scrolling in standard PDF viewers.

@VijayakumarMariappan VijayakumarMariappan added follow-up scheduled Follow-up scheduled and removed open Open labels May 27, 2025
@immankumarsync
Copy link
Contributor

At present Syncfusion Flutter PDF Viewer does not have support for "Customizing the visibility appearance of the scrollbars on desktop platforms". We do not have any immediate plans to implement this feature. At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented.

Please use the feedback link to track the feature request status:
(Desktop) Support for customizing the visibility and default color of scrollbars in Flutter | Feedback Portal

@sfHariHaraSudhan sfHariHaraSudhan added uncertain Uncertain feature feature New feature labels Jun 2, 2025
@sfHariHaraSudhan sfHariHaraSudhan closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature follow-up scheduled Follow-up scheduled pdf viewer PDF viewer component uncertain Uncertain feature
Projects
None yet
Development

No branches or pull requests

4 participants