Skip to content

Commit

Permalink
Merge pull request #7243 from AvaloniaUI/fix-touch-device-tests
Browse files Browse the repository at this point in the history
Fix touch device tests
  • Loading branch information
Takoooooo authored and danwalmsley committed Jan 24, 2022
1 parent 5875f77 commit 21721a4
Show file tree
Hide file tree
Showing 2 changed files with 162 additions and 186 deletions.
2 changes: 1 addition & 1 deletion src/Avalonia.Input/TouchDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void ProcessRawEvent(RawInputEventArgs ev)
var settings = AvaloniaLocator.Current.GetService<IPlatformSettings>();
if (settings == null)
{
throw new Exception("IPlatformSettings can not be null");
throw new Exception("IPlatformSettings can not be null.");
}
if (!_lastClickRect.Contains(args.Position)
|| ev.Timestamp - _lastClickTime > settings.DoubleClickTime.TotalMilliseconds)
Expand Down
Loading

0 comments on commit 21721a4

Please sign in to comment.