base: touch ui fixes

This commit is contained in:
luboslenco
2026-01-26 13:54:53 +01:00
parent 7fc9a2075e
commit aff0d0f13e
2 changed files with 12 additions and 0 deletions
@@ -98,6 +98,12 @@ function brush_output_node_run(self: brush_output_node_t, from: i32) {
let w: i32 = ui_toolbar_x() + ui_toolbar_w(); let w: i32 = ui_toolbar_x() + ui_toolbar_w();
left += w / sys_w(); left += w / sys_w();
top += w / sys_h(); top += w / sys_h();
/// if arm_ios
if (config_is_iphone()) {
top += w / sys_h();
}
/// end
} }
// First time init // First time init
+6
View File
@@ -193,9 +193,15 @@ function config_init() {
config_raw.pressure_sensitivity = 2.0; config_raw.pressure_sensitivity = 2.0;
/// end /// end
config_raw.camera_fov = 0.69; config_raw.camera_fov = 0.69;
/// if (arm_android || arm_ios)
config_raw.camera_zoom_speed = 0.5;
config_raw.camera_pan_speed = 0.5;
config_raw.camera_rotation_speed = 0.5;
/// else
config_raw.camera_zoom_speed = 1.0; config_raw.camera_zoom_speed = 1.0;
config_raw.camera_pan_speed = 1.0; config_raw.camera_pan_speed = 1.0;
config_raw.camera_rotation_speed = 1.0; config_raw.camera_rotation_speed = 1.0;
/// end
config_raw.camera_upside_down = false; config_raw.camera_upside_down = false;
config_raw.zoom_direction = zoom_direction_t.VERTICAL; config_raw.zoom_direction = zoom_direction_t.VERTICAL;
config_raw.displace_strength = 0.0; config_raw.displace_strength = 0.0;