From c59f89e99c90c0e756cdf780bcbf04d782eb3e6f Mon Sep 17 00:00:00 2001 From: dam Date: Sat, 1 Jan 2022 04:56:58 +0000 Subject: Change touch scroll detection to pointer-input-sensor approach using signals/events. --- main.tscn | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'main.tscn') diff --git a/main.tscn b/main.tscn index 9cb9220..331d94d 100644 --- a/main.tscn +++ b/main.tscn @@ -9,7 +9,7 @@ [ext_resource path="res://icons/add.png" type="Texture" id=7] [ext_resource path="res://icons/delete.png" type="Texture" id=8] [ext_resource path="res://logic/stage.gd" type="Script" id=9] -[ext_resource path="res://touch_scroll.gd" type="Script" id=10] +[ext_resource path="res://pointer_input_sensor.gd" type="Script" id=10] [node name="main" type="Control"] anchor_right = 1.0 @@ -29,7 +29,7 @@ __meta__ = { "_edit_use_anchors_": false } -[node name="touch_scroll" type="Control" parent="database"] +[node name="drag_sensor" type="Control" parent="database"] anchor_right = 1.0 anchor_bottom = 1.0 margin_right = -8.0 @@ -37,9 +37,6 @@ script = ExtResource( 10 ) __meta__ = { "_edit_use_anchors_": false } -click_target_path = "../" -scroll_target_path = "../" -scroll_bar_get_method = "get_v_scroll" [node name="actions" type="VBoxContainer" parent="database"] anchor_left = 1.0 -- cgit v1.2.3