v0.9.2: fixed recently added error with scroll indicator in ScrollPane

This commit is contained in:
Evan Debenham 2021-02-20 19:55:39 -05:00
parent a933194342
commit 6550ac9130

View File

@ -61,7 +61,7 @@ public class ScrollPane extends Component {
public void scrollTo( float x, float y ) {
content.camera.scroll.set( x, y );
thumb.y = y + height * content.camera.scroll.y / content.height();
thumb.y = this.y + height * content.camera.scroll.y / content.height();
}
@Override