Skip to content
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

Feature: Add more customization for the Scroll Handle #46

Open
SpirikleOfficial opened this issue Feb 17, 2024 · 6 comments
Open

Feature: Add more customization for the Scroll Handle #46

SpirikleOfficial opened this issue Feb 17, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@SpirikleOfficial
Copy link

Issue:
The default scroll handle is not customizable.

Suggested solution:
It would be greatly appreciated if there was any way to use custom layout for the handle, along with an option whether to hide the handle or not after some inactivity. Right now the handle hides automatically after some inactivity.

Screenshot for reference:

scrollbar

@andreBalh
Copy link
Collaborator

Hello @SpirikleOfficial

Do you need this change only for Android or also for iOS?
If only on Android, did you try to change the flag enableDefaultScrollHandle?
I can investigate this in the end of the week, if the flag is not working

@andreBalh andreBalh added help wanted Extra attention is needed question Further information is requested labels Feb 20, 2024
@SpirikleOfficial
Copy link
Author

For Android I enabled the flag and that's how the handle was being shown. That said, the flag works but there were limitations for customisation.
It would be appreciated it if you could add for IOS as well as Android

@andreBalh
Copy link
Collaborator

I think what you wish for is similar to this one #10 ? @SpirikleOfficial

@SpirikleOfficial
Copy link
Author

What you mentioned is one use case of customization.

For example, the Google PDF Viewer has it's own custom handle as shown in the screenshot below:

photo_2024-02-20_13-41-51

What we wish for is that to allow some customization for the handle like it's layout, option to either show the handle or hide it after some inactivity, ability to specify the time for the handle to take before disappearing after inactivity.

@andreBalh
Copy link
Collaborator

I see, probably it won't be that easy to implement this feature, especially for iOS and Android, but I will check it to see what is possible for now @SpirikleOfficial

@andreBalh andreBalh added enhancement New feature or request and removed help wanted Extra attention is needed question Further information is requested labels Feb 20, 2024
@andreBalh andreBalh changed the title No Customization for Scroll Handle Feature: Add more customization for the Scroll Handle Feb 20, 2024
@andreBalh
Copy link
Collaborator

Good morning @SpirikleOfficial
On Android it is definitely possible to modify the scroll handle with some attributes (so e.g. the color and shape).
Currently I have issues to built the android project because of some updates, so I will add this to our road map and hopefully soon we implement this. If you need this feature earlier, you could try to implement it by yourself and I can review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants