aboutsummaryrefslogtreecommitdiff
path: root/main.tscn
diff options
context:
space:
mode:
authordam <dam@gudinoff>2022-01-01 04:56:58 +0000
committerdam <dam@gudinoff>2022-01-01 04:56:58 +0000
commitc59f89e99c90c0e756cdf780bcbf04d782eb3e6f (patch)
treeafeea78d9d5f68092f61d573dff2f677b1c40aa8 /main.tscn
parent7f0580b6b49a9dbafc54a0190bf573503c54417a (diff)
downloadsurgery-log-c59f89e99c90c0e756cdf780bcbf04d782eb3e6f.tar.zst
surgery-log-c59f89e99c90c0e756cdf780bcbf04d782eb3e6f.zip
Change touch scroll detection to pointer-input-sensor approach using signals/events.
Diffstat (limited to 'main.tscn')
-rw-r--r--main.tscn7
1 files changed, 2 insertions, 5 deletions
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