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

Scrollbar "fade out" does not work #3743

Open
ThomasH99 opened this issue Oct 4, 2023 · 0 comments
Open

Scrollbar "fade out" does not work #3743

ThomasH99 opened this issue Oct 4, 2023 · 0 comments
Assignees

Comments

@ThomasH99
Copy link
Contributor

Describe the bug
I’m using the scrollbar but I cannot get it fade out smoothly/gradually, it just disappears abruptly.

The issue happened with a fadeout time of 1000 (1 second), but equally with 3000 (3s).

I don’t know if it’s important, but I also noticed that the scrollbar on the Simulator always stay visible, it only disappears on iOS and Android.

Here’s the code I call in init():

UIManager.getInstance().getLookAndFeel().setFadeScrollBar(true);
UIManager.getInstance().getLookAndFeel().setFadeScrollBarSpeed(1000); //milliseconds I assume

and my CSS:

scrollVisibleBool: true;
fadeScrollBarBool:true;

fadeScrollEdgeBool:false; /*not used I believe */
fadeScrollEdgeInt:0;

Scroll{
background: transparent;
color:transparent;
margin:0;
padding: 0 0 0 0.5mm;
}

ScrollThumb{ /*not used I believe */
cn1-derive:Scroll;
color:transparent;
padding: 0;
margin:0;
background: transparent;
}

To Reproduce
Add the code above to a Hello Word app's CSS and main.

Expected behavior
The scrollbar should fade out gradually instead of disappear instantly after a short time.

Desktop (please complete the following information):

  • OS: iOS 17, Android 8.

Smartphone (please complete the following information):

  • Device: [iPhone XR, Samsung Galaxy S7
@shai-almog shai-almog self-assigned this Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants