Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

copy

Richie McIlroy181b0190b9fc
diff --git a/apps/desktop/src-tauri/src/recording.rs b/apps/desktop/src-tauri/src/recording.rs
index 578e3e0d8..ed0eb3620 100644
--- a/apps/desktop/src-tauri/src/recording.rs
+++ b/apps/desktop/src-tauri/src/recording.rs
@@ -4109,7 +4109,7 @@ mod tests {
}
#[test]
- fn merges_clicks_with_screen_studio_gap() {
+ fn merges_clicks_with_three_second_gap() {
let clicks = vec![click_event(1_200.0), click_event(4_200.0)];
let moves = vec![
move_event(1_500.0, 0.10, 0.12),
diff --git a/crates/rendering/src/cursor_interpolation.rs b/crates/rendering/src/cursor_interpolation.rs
index 4ff7a68c3..281bace64 100644
--- a/crates/rendering/src/cursor_interpolation.rs
+++ b/crates/rendering/src/cursor_interpolation.rs
@@ -7,8 +7,8 @@ use crate::{
spring_mass_damper::{SpringMassDamperSimulation, SpringMassDamperSimulationConfig},
};
-/// Screen Studio's verified anticipation windows: the spring target snaps to
-/// the click position once the next click is <=500ms away, and the spring
+/// Click anticipation windows: the spring target snaps to the click position
+/// once the next click is <=500ms away, and the spring
/// profile stiffens 175ms before the click. The early snap relies on the
/// spring gliding there; no extra heuristics.
const CLICK_LOOKAHEAD_TARGET_MS: f64 = 500.0;
diff --git a/crates/rendering/src/zoom_spring.rs b/crates/rendering/src/zoom_spring.rs
index fc093d92a..223ba43f4 100644
--- a/crates/rendering/src/zoom_spring.rs
+++ b/crates/rendering/src/zoom_spring.rs
@@ -11,8 +11,7 @@
//! step-function targets, retargeted every 8 ms step with velocity always
//! carried across retargets. There are no fixed animation durations and no
//! boundary special-cases: segment starts/ends/re-aims are just target changes
-//! the spring smooths through, which is what makes the motion feel like
-//! Screen Studio's.
+//! the spring smooths through for continuous motion.
//!
//! The timeline lives in TIMELINE time. Cursor events are in RECORDING time,
//! so click-cluster construction and the "active cluster at time t" lookup map
@@ -45,7 +44,7 @@ const STEP_MS: f64 = 8.0;
const INSTANT_SNAP_WINDOW_SECS: f64 = 0.1;
/// Greedy click-cluster bounding-box limits, as a fraction of the visible
-/// zoomed viewport (Screen Studio: 50% width x 70% height).
+/// zoomed viewport (50% width x 70% height).
const CLUSTER_WIDTH_RATIO: f64 = 0.5;
const CLUSTER_HEIGHT_RATIO: f64 = 0.7;