scrollbar: fix initial value in vertical mode

This commit is contained in:
jean-emmanuel 2026-08-14 12:50:05 +02:00
parent efe5629396
commit ce0ae02c8b

View file

@ -47,8 +47,10 @@ export default class Scrollbar extends StaticProperties(Fader, {
this.thumbSize = 1
if (!this.getProp('horizontal')) {
// invert vertical fader
this.rangeVals[0] = 1
this.rangeVals[1] = 0
this.setValue(this.getSpringValue())
}