only start animation loop when canvas is visible
+ add some placeholder files
This commit is contained in:
parent
56cd77942b
commit
7b43ed702e
7 changed files with 62 additions and 60 deletions
|
|
@ -37,7 +37,7 @@ export function MiniRepl({ tune, hideOutsideView = false, enableKeyboard, withCa
|
|||
|
||||
usePatternFrame({
|
||||
pattern,
|
||||
started,
|
||||
started: withCanvas && started,
|
||||
getTime: () => scheduler.now(),
|
||||
onDraw: (time, haps) => {
|
||||
const ctx = document.querySelector('#' + canvasId).getContext('2d');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue