Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Avalonia.Base/Platform/DefaultPlatformSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public virtual Size GetTapSize(PointerType type)
{
return type switch
{
PointerType.Touch => new(10, 10),
PointerType.Touch or PointerType.Pen => new(10, 10),
_ => new(4, 4),
};
}
Expand All @@ -27,7 +27,7 @@ public virtual Size GetDoubleTapSize(PointerType type)
{
return type switch
{
PointerType.Touch => new(16, 16),
PointerType.Touch or PointerType.Pen => new(16, 16),
_ => new(4, 4),
};
}
Expand Down
8 changes: 4 additions & 4 deletions src/Windows/Avalonia.Win32/Win32PlatformSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ public override Size GetTapSize(PointerType type)
{
return type switch
{
PointerType.Touch => new(10, 10),
_ => new(GetSystemMetrics(SystemMetric.SM_CXDRAG), GetSystemMetrics(SystemMetric.SM_CYDRAG)),
PointerType.Mouse => new(GetSystemMetrics(SystemMetric.SM_CXDRAG), GetSystemMetrics(SystemMetric.SM_CYDRAG)),
_ => base.GetTapSize(type)
};
}

public override Size GetDoubleTapSize(PointerType type)
{
return type switch
{
PointerType.Touch => new(16, 16),
_ => new(GetSystemMetrics(SystemMetric.SM_CXDOUBLECLK), GetSystemMetrics(SystemMetric.SM_CYDOUBLECLK)),
PointerType.Mouse => new(GetSystemMetrics(SystemMetric.SM_CXDOUBLECLK), GetSystemMetrics(SystemMetric.SM_CYDOUBLECLK)),
_ => base.GetDoubleTapSize(type)
};
}

Expand Down
Loading