Skip to content

Commit de49103

Browse files
authored
fixing getPointerCoordinates call function
1 parent 987d9fb commit de49103

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ export default class CanvasDraw extends PureComponent {
615615
};
616616

617617
loop = ({ once = false } = {}) => {
618-
if (this.mouseHasMoved || this.valuesChanged) {
618+
if (this.lazy && (this.mouseHasMoved || this.valuesChanged)) {
619619
const pointer = this.lazy.getPointerCoordinates();
620620
const brush = this.lazy.getBrushCoordinates();
621621

0 commit comments

Comments
 (0)