Skip to content

Commit 856efe4

Browse files
committed
Merge pull request #89509 from timothyqiu/touch-event-position
Fix description of touch input position
2 parents ea05652 + 0ff396c commit 856efe4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/classes/InputEventScreenDrag.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
Returns [code]true[/code] when using the eraser end of a stylus pen.
1818
</member>
1919
<member name="position" type="Vector2" setter="set_position" getter="get_position" default="Vector2(0, 0)">
20-
The drag position.
20+
The drag position in the viewport the node is in, using the coordinate system of this viewport.
2121
</member>
2222
<member name="pressure" type="float" setter="set_pressure" getter="get_pressure" default="0.0">
2323
Represents the pressure the user puts on the pen. Ranges from [code]0.0[/code] to [code]1.0[/code].

doc/classes/InputEventScreenTouch.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
The touch index in the case of a multi-touch event. One index = one finger.
2121
</member>
2222
<member name="position" type="Vector2" setter="set_position" getter="get_position" default="Vector2(0, 0)">
23-
The touch position, in screen (global) coordinates.
23+
The touch position in the viewport the node is in, using the coordinate system of this viewport.
2424
</member>
2525
<member name="pressed" type="bool" setter="set_pressed" getter="is_pressed" default="false">
2626
If [code]true[/code], the touch's state is pressed. If [code]false[/code], the touch's state is released.

0 commit comments

Comments
 (0)