We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9bfe24 commit ccf1db8Copy full SHA for ccf1db8
Assets/Scripts/UI/GObject.cs
@@ -2016,6 +2016,9 @@ private void InitDrag()
2016
2017
private void DragBegin(int touchId)
2018
{
2019
+ if (DispatchEvent("onDragStart", touchId))
2020
+ return;
2021
+
2022
if (draggingObject != null)
2023
2024
GObject tmp = draggingObject;
@@ -2074,8 +2077,7 @@ private void __touchMove(EventContext context)
2074
2077
return;
2075
2078
2076
2079
_dragTesting = false;
- if (!DispatchEvent("onDragStart", evt.touchId))
- DragBegin(evt.touchId);
2080
+ DragBegin(evt.touchId);
2081
}
2082
2083
if (draggingObject == this)
0 commit comments