You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,11 +118,11 @@ As an example of further configuration, you can tune the smear dynamics to be sn
118
118
```lua
119
119
opts= { -- Default Range
120
120
stiffness=0.8, -- 0.6 [0, 1]
121
-
trailing_stiffness=0.5, -- 0.4 [0, 1]
121
+
trailing_stiffness=0.6, -- 0.45 [0, 1]
122
122
stiffness_insert_mode=0.7, -- 0.5 [0, 1]
123
123
trailing_stiffness_insert_mode=0.7, -- 0.5 [0, 1]
124
-
damping=0.8, -- 0.65 [0, 1]
125
-
damping_insert_mode=0.8, -- 0.7 [0, 1]
124
+
damping=0.95, -- 0.85 [0, 1]
125
+
damping_insert_mode=0.95, -- 0.9 [0, 1]
126
126
distance_stop_animating=0.5, -- 0.1 > 0
127
127
},
128
128
```
@@ -134,7 +134,7 @@ If you notice a low framerate, you can try lowering the time interval between dr
134
134
},
135
135
```
136
136
137
-
You can also change the "bounciness" of the smear by adjusting the `damping`parameter (default to `0.65`). Increasing it (_e.g._ to `0.8`) will reduce the overshoot, while decreasing it (_e.g._ to `0.5`) will make the smear more elastic.
137
+
You can also change the "bounciness" of the smear by adjusting the `damping`and `damping_insert_mode` parameters (default to `0.85` and `0.9` respectively). Decreasing them (_e.g._ to `0.65`) will make the smear appear more elastic (overshooting target position).
138
138
139
139
140
140
> **🔥 FIRE HAZARD 🔥**
@@ -164,7 +164,6 @@ If you wish to only have a smoother cursor that keeps its rectangular shape (wit
0 commit comments