Fixed #5545
This commit is contained in:
@@ -181,7 +181,7 @@ public class LCanvas extends Table{
|
|||||||
float dst = Math.min(y - this.y, Core.graphics.getHeight() - y);
|
float dst = Math.min(y - this.y, Core.graphics.getHeight() - y);
|
||||||
if(dst < Scl.scl(100f)){ //scroll margin
|
if(dst < Scl.scl(100f)){ //scroll margin
|
||||||
int sign = Mathf.sign(Core.graphics.getHeight()/2f - y);
|
int sign = Mathf.sign(Core.graphics.getHeight()/2f - y);
|
||||||
pane.setScrollY(pane.getScrollY() + sign * Scl.scl(15f));
|
pane.setScrollY(pane.getScrollY() + sign * Scl.scl(15f) * Time.delta);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user