Skip to content

Commit 5e3a6ef

Browse files
unhappychoiceclaude
andcommitted
fix: allow sub-base-speed pauses to work correctly
Set next_step_delay to 0 for Pause steps so timing is entirely controlled by pause_until. This allows multipliers < 1.0 (like CURSOR_MOVE_PAUSE = 0.5) to actually produce shorter pauses. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1d594d6 commit 5e3a6ef

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/animation.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,10 @@ impl AnimationEngine {
904904
let variation = rng.random_range(0.7..=1.3);
905905
((self.speed_ms as f64) * 2.0 * variation) as u64
906906
}
907+
AnimationStep::Pause { .. } => {
908+
// Pause timing is driven by `pause_until`; don't add extra delay
909+
0
910+
}
907911
_ => {
908912
// Other steps use base speed
909913
self.speed_ms

0 commit comments

Comments
 (0)