pub struct SmartMouseConfig {
pub steps: usize,
pub overshoot: f64,
pub jitter: f64,
pub step_delay_ms: u64,
pub easing: bool,
pub auto_size: bool,
pub min_duration_ms: u64,
pub max_duration_ms: u64,
pub pre_click_dwell_ms: Option<(u64, u64)>,
}Expand description
Configuration for smart mouse movement behavior.
Fields§
§steps: usizeNumber of intermediate steps for movement (higher = smoother).
Used directly when auto_size is false. With
auto_size enabled the step count is derived from move distance
instead and this field is ignored. Default: 25.
overshoot: f64Overshoot factor past the target (0.0 = none, 1.0 = full distance). Default: 0.15.
jitter: f64Per-step jitter in CSS pixels. Default: 1.5.
step_delay_ms: u64Target delay between movement steps in milliseconds. With
auto_size, this is the target spacing — the actual per-step
delay is the auto-sized total duration divided by the auto-sized
step count, which can differ when the step count clamps. Default: 8.
easing: boolWhether to apply ease-in-out timing (acceleration/deceleration). Default: true.
auto_size: boolScale step count and total duration to move distance using a
Fitts’-law-style formula. When false, every move uses exactly
steps intermediate points spaced at
step_delay_ms regardless of distance —
which makes every gesture take the same wall-clock time and is
itself a detection signal. Default: true.
min_duration_ms: u64Lower bound on auto-sized total move duration in milliseconds. Default: 100.
max_duration_ms: u64Upper bound on auto-sized total move duration in milliseconds. Default: 800.
pre_click_dwell_ms: Option<(u64, u64)>Inclusive range for the randomized pause between the final
mouseMoved of a move and the mousePressed of the click that
follows, in milliseconds. None disables the dwell entirely;
Some((0, 0)) is also treated as disabled. Default:
Some((40, 120)) — short enough to feel responsive but long
enough to break the move→press timing fingerprint that common
antibot heuristics flag.
Trait Implementations§
Source§impl Clone for SmartMouseConfig
impl Clone for SmartMouseConfig
Source§fn clone(&self) -> SmartMouseConfig
fn clone(&self) -> SmartMouseConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more