Skip to content

Scrollbar "fade out" does not work #3743

@ThomasH99

Description

@ThomasH99

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions