Skip to content

Commit

Permalink
Fix for default value for _isEmpty.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulferrett committed Feb 21, 2023
1 parent a486a10 commit 5a8b81d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/js/signature_pad.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/signature_pad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class SignaturePad extends SignatureEventTarget {
/* tslint:disable: variable-name */
private _ctx: CanvasRenderingContext2D;
private _drawningStroke = false;
private _isEmpty = false;
private _isEmpty = true;
private _lastPoints: Point[] = []; // Stores up to 4 most recent points; used to generate a new curve
private _data: PointGroup[] = []; // Stores all points in groups (one group per line or dot)
private _lastVelocity = 0;
Expand Down

0 comments on commit 5a8b81d

Please sign in to comment.