fixed hitbox and timescale working on toggle

This commit is contained in:
Rendo 2025-07-28 05:28:39 +05:00
commit 635a832ec8
2 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ public partial class DragAction : Node
toggle = false;
can_end = false;
EmitSignal(SignalName.DragBegin);
GetTree().CreateTimer(0.2).Timeout += OnToggleTimeout;
GetTree().CreateTimer(0.2,ignoreTimeScale:true).Timeout += OnToggleTimeout;
}
if (dragging && can_end && (toggle == false && @event.IsActionReleased("primary_action") || (toggle == true && @event.IsActionPressed("primary_action"))))
{