MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / gesture_surface_size

Function gesture_surface_size

packages/server/src/main/input_helpers.rs:152–159  ·  view source on GitHub ↗
(bridge: &NativeBridge, udid: &str, normalized: bool)

Source from the content-addressed store, hash-verified

150}
151
152fn gesture_surface_size(bridge: &NativeBridge, udid: &str, normalized: bool) -> (f64, f64) {
153 if normalized {
154 return (1.0, 1.0);
155 }
156 accessibility_root_size(bridge, udid)
157 .or_else(|| chrome_screen_size(bridge, udid))
158 .unwrap_or((390.0, 844.0))
159}
160
161fn parse_key_list(value: &str) -> Result<Vec<u16>, crate::error::AppError> {
162 let mut keys = Vec::new();

Callers 2

pinch_framesFunction · 0.85
rotate_gesture_framesFunction · 0.85

Calls 2

accessibility_root_sizeFunction · 0.85
chrome_screen_sizeFunction · 0.85

Tested by

no test coverage detected