Skip to content

Commit

Permalink
fix: touch sensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Dec 15, 2023
1 parent 2ea35a3 commit 004224c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graph-view"
version = "0.1.19"
version = "0.1.20"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion src/identifiers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ fn zoom_camera_to_selected_identifier(
if let Ok(mut camera) = camera_q.get_single_mut() {
let direction = identifier_transform.translation - Vec3::ZERO;
let normalized_direction = direction.normalize();
let desired_distance = 3.0;
let desired_distance = 4.0;

let camera_position =
identifier_transform.translation + normalized_direction * desired_distance;
Expand Down
2 changes: 1 addition & 1 deletion src/touch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl Default for TouchCameraConfig {
fn default() -> Self {
Self {
drag_sensitivity: 0.002,
zoom_sensitivity: 0.1,
zoom_sensitivity: 0.01,
touch_time_min: 0.01,
opposites_tolerance: 0.,
}
Expand Down

0 comments on commit 004224c

Please sign in to comment.