mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 20:07:32 +00:00
Optimised scrolling animation variables to fix the line text's stuttering at the end of scroll ease out
This commit is contained in:
1 parent
8089a5eef0
commit
ef4438fcf4
1 file changed
+3
-3
@@ -23,9 +23,9 @@ public class ScrollState {
|
||||
private boolean clickScrolling = false;
|
||||
|
||||
// Animation parameters
|
||||
private static final double TAU = 0.1; // Time constant (~55ms feels snappy)
|
||||
private static final double SNAP_THRESHOLD = 0.01; // Snap to target when this close
|
||||
private static final double MAX_DT = 0.05; // Max delta time for stability
|
||||
private static final double TAU = 0.15; // Time constant (~55ms feels snappy)
|
||||
private static final double SNAP_THRESHOLD = 0.1; // Snap to target when this close (increased to avoid microstutters)
|
||||
private static final double MAX_DT = 0.1; // Max delta time for stability
|
||||
|
||||
/**
|
||||
* Reset scroll state to initial values
|
||||
|
||||
Reference in new issue
Block a user