Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(project): tune cursor spring, motion blur, and rotation defaults

Richie McIlroy4718c186b16d
diff --git a/crates/project/src/configuration.rs b/crates/project/src/configuration.rs
index 612bb691f..02f14c823 100644
--- a/crates/project/src/configuration.rs
+++ b/crates/project/src/configuration.rs
@@ -438,9 +438,9 @@ pub struct ClickSpringConfig {
impl Default for ClickSpringConfig {
fn default() -> Self {
Self {
- tension: 700.0,
+ tension: 530.0,
mass: 1.0,
- friction: 30.0,
+ friction: 40.0,
}
}
}
@@ -520,7 +520,7 @@ impl Default for CursorConfiguration {
mass: 3.0,
friction: 70.0,
raw: false,
- motion_blur: 0.5,
+ motion_blur: 1.0,
use_svg: true,
rotation_amount: Self::default_rotation_amount(),
base_rotation: 0.0,
@@ -543,7 +543,7 @@ impl CursorConfiguration {
}
fn default_rotation_amount() -> f32 {
- 0.5
+ 0.15
}
pub fn cursor_type(&self) -> &CursorType {
@@ -1118,7 +1118,7 @@ fn camera_config_needs_migration(value: &Value) -> bool {
impl ProjectConfiguration {
fn default_screen_motion_blur() -> f32 {
- 0.5
+ 1.0
}
pub fn validate(&self) -> Result<(), AnnotationValidationError> {