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

Bug of options #59

Open
WahlbergRu opened this issue Jul 14, 2017 · 2 comments
Open

Bug of options #59

WahlbergRu opened this issue Jul 14, 2017 · 2 comments

Comments

@WahlbergRu
Copy link

WahlbergRu commented Jul 14, 2017

Hello

`
constructor(obj?: ISlimScrollOptions) {

this.position = obj && obj.position ? obj.position : 'right'; 

this.barBackground = obj && obj.barBackground ? obj.barBackground : '#343a40';

this.barOpacity = obj && obj.barOpacity ? obj.barOpacity : '1';

this.barWidth = obj && obj.barWidth ? obj.barWidth : '12';

this.barBorderRadius = obj && obj.barBorderRadius ? obj.barBorderRadius : '5';

this.barMargin = obj && obj.barMargin ? obj.barMargin : '1px 0';

this.gridBackground = obj && obj.gridBackground ? obj.gridBackground : '#adb5bd';

this.gridOpacity = obj && obj.gridOpacity ? obj.gridOpacity : '1';

this.gridWidth = obj && obj.gridWidth ? obj.gridWidth : '8';

this.gridBorderRadius = obj && obj.gridBorderRadius ? obj.gridBorderRadius : '10';

this.gridMargin = obj && obj.gridMargin ? obj.gridMargin : '1px 2px';

this.alwaysVisible = obj && typeof obj.alwaysVisible !== 'undefined' ? obj.alwaysVisible : true;

this.visibleTimeout = obj && obj.visibleTimeout ? obj.visibleTimeout : 1000; 

}
`

If we are setup for number 0, script doesn't work. In example gridOpacity = 0. We have a basic value.

I think in constructor need check with type of undefined.

@akvaliya
Copy link

akvaliya commented Jan 1, 2019

gridOpacity is not working with any values. Did anyone found any solution for this

@jkuri
Copy link
Owner

jkuri commented Jan 1, 2019

@akvaliya it should work with values from 0 to 1, just like css opacity property.

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

3 participants