Skip to content

Commit 4e846e6

Browse files
author
HarshKhandeparkar
committed
fix: mouse leave displays pixels
1 parent c41ec74 commit 4e846e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/renderers/RealDrawBoard/RealDrawBoard.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export class RealDrawBoard extends RealRenderer {
130130
_mouseLeaveEventListener = (e: MouseEvent) => {
131131
this.canvas.removeEventListener('mousemove', this._mouseMoveEventListener);
132132
this._isStroking = false;
133+
this._display(this.graphPixels);
133134

134135
if(this._lastCoords.has('mouse')) this._endStroke(this._getMouseCoords(e), 'mouse');
135136
}

0 commit comments

Comments
 (0)