Skip to content

Commit

Permalink
Merge pull request #9 from Susko3/fix-pointer-down-events
Browse files Browse the repository at this point in the history
Fix pointer up events not properly releasing server pen
  • Loading branch information
Teages authored May 20, 2024
2 parents cbf9cf5 + 72162d5 commit 9feda19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/lib/vtablet.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class VTabletPage extends StatelessWidget {

int pointerX = screenToDigi(rawX, offsetX, ariaWidth, boxWidth);
int pointerY = screenToDigi(rawY, offsetY, ariaHeight, boxHeight);
int pressure = (8192 * rawPressure).toInt();
int pressure = event.down ? (8192 * rawPressure).toInt() : 0;

double tiltX = rawTilt * math.cos(rawOrientation) * 90;
double tiltY = rawTilt * math.sin(rawOrientation) * 90;
Expand Down

0 comments on commit 9feda19

Please sign in to comment.