Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Update TouchStart and TouchMove handlers to force a touch force of 1 …
Browse files Browse the repository at this point in the history
…if the touch.force member is 0 (#486)
  • Loading branch information
Belchy06 committed Feb 14, 2024
1 parent 5cf2735 commit 664d40b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Frontend/library/src/Inputs/TouchController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class TouchController implements ITouchController {
coord.x,
coord.y,
this.fingerIds.get(touch.identifier),
this.maxByteValue * touch.force,
this.maxByteValue * (touch.force > 0 ? touch.force : 1),
coord.inRange ? 1 : 0
]);
break;
Expand All @@ -198,7 +198,7 @@ export class TouchController implements ITouchController {
coord.x,
coord.y,
this.fingerIds.get(touch.identifier),
this.maxByteValue * touch.force,
this.maxByteValue * (touch.force > 0 ? touch.force : 1),
coord.inRange ? 1 : 0
]);
break;
Expand Down

0 comments on commit 664d40b

Please sign in to comment.