Skip to content

Commit

Permalink
Add a short delay to give time for the selection animation
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamRoden authored and JuliusSweetland committed Mar 29, 2020
1 parent 2e9f654 commit 2839130
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private void CreateSelectionSubscriptions(SelectionModes mode)
}
}

private void ProcessSelectionTrigger(TriggerSignal triggerSignal)
private async void ProcessSelectionTrigger(TriggerSignal triggerSignal)
{
if (triggerSignal.Signal >= 1
&& !CapturingMultiKeySelection)
Expand Down Expand Up @@ -191,6 +191,8 @@ private void ProcessSelectionTrigger(TriggerSignal triggerSignal)
{
PublishSelection(triggerSignal.PointAndKeyValue);

await Task.Delay(20); //Add a short delay to give time for the selection animation

PublishSelectionResult(new Tuple<List<Point>, KeyValue, List<string>>(
new List<Point> { triggerSignal.PointAndKeyValue.Point },
triggerSignal.PointAndKeyValue.KeyValue,
Expand Down

0 comments on commit 2839130

Please sign in to comment.