Skip to content

Commit

Permalink
Update SKTouchHandler.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Jul 23, 2020
1 parent fe2193d commit ab95249
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private bool CommonHandler(object sender, SKTouchAction touchActionType, Pointer
var device = GetTouchDevice(evt, pointerPoint);

var wheelDelta = pointerPoint?.Properties?.MouseWheelDelta ?? 0;
var pressure = pointerPoint?.Properties?.Pressure ?? 1;
var pressure = pointerPoint?.Properties?.Pressure ?? 0.5;

var args = new SKTouchEventArgs(id, touchActionType, mouse, device, skPoint, evt.Pointer.IsInContact, wheelDelta, pressure);
onTouchAction(args);
Expand Down

0 comments on commit ab95249

Please sign in to comment.