mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 05:27:37 +00:00
Smoothened script editor scrolling again (now that we have proper fonts)
This commit is contained in:
1 parent
f6f19c0e48
commit
547989a6d4
1 file changed
+3
-3
@@ -23,9 +23,9 @@ public class ScrollState {
|
||||
private boolean clickScrolling = false;
|
||||
|
||||
// Animation parameters
|
||||
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
|
||||
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 (increased to avoid microstutters)
|
||||
private static final double MAX_DT = 0.05; // Max delta time for stability
|
||||
|
||||
/**
|
||||
* Reset scroll state to initial values
|
||||
|
||||
Reference in new issue
Block a user