Skip to content

Commit

Permalink
Use 1 as the default width/height values
Browse files Browse the repository at this point in the history
  • Loading branch information
chuganzy authored and ph-fritsche committed Jan 16, 2025
1 parent 4f4ac73 commit e2bcaf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/event/createEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ function initPointerEvent(
) {
assignProps(event, {
pointerId: sanitizeNumber(pointerId),
width: sanitizeNumber(width),
height: sanitizeNumber(height),
width: width ?? 1,
height: height ?? 1,
pressure: sanitizeNumber(pressure),
tangentialPressure: sanitizeNumber(tangentialPressure),
tiltX: sanitizeNumber(tiltX),
Expand Down

0 comments on commit e2bcaf6

Please sign in to comment.