default to no draw delay but allow as a setting
This commit is contained in:
@@ -13,7 +13,7 @@ export default class Sketch {
|
||||
|
||||
this.draw = settings.draw || noop;
|
||||
this.resize = settings.resize || noop;
|
||||
this.drawDelay = settings.drawDelay || 50;
|
||||
this.drawDelay = settings.drawDelay;
|
||||
this.container = settings.element || document.body;
|
||||
|
||||
window.addEventListener('resize', this.onResize);
|
||||
|
||||
Reference in New Issue
Block a user