Browse Source

Fixed intermediate points defaulting properties

feature/pen-eraser-detection
flabbet 4 months ago
parent
commit
0472f989dd
  1. 2
      src/Shared/RawEventGrouping.cs

2
src/Shared/RawEventGrouping.cs

@ -180,7 +180,7 @@ internal class RawEventGrouper : IDisposable
{
last.IntermediatePoints ??= new Lazy<IReadOnlyList<RawPointerPoint>?>(s_getPooledListDelegate);
((PooledList<RawPointerPoint>)last.IntermediatePoints.Value!).Add(new RawPointerPoint { Position = last.Position });
((PooledList<RawPointerPoint>)last.IntermediatePoints.Value!).Add(new RawPointerPoint { Position = last.Position, Pressure = last.Point.Pressure, ContactRect = last.Point.ContactRect, Twist = last.Point.Twist, XTilt = last.Point.XTilt, YTilt = last.Point.YTilt });
last.Position = current.Position;
last.Timestamp = current.Timestamp;
last.InputModifiers = current.InputModifiers;

Loading…
Cancel
Save