Fix timing bug
Browse files- src/routes/+page.svelte +1 -1
src/routes/+page.svelte
CHANGED
|
@@ -161,7 +161,7 @@
|
|
| 161 |
if (controlsEl) {
|
| 162 |
controlsEl.appendChild(div);
|
| 163 |
isOutputControlAdded = true;
|
| 164 |
-
|
| 165 |
if (interval) {
|
| 166 |
clearInterval(interval);
|
| 167 |
}
|
|
|
|
| 161 |
if (controlsEl) {
|
| 162 |
controlsEl.appendChild(div);
|
| 163 |
isOutputControlAdded = true;
|
| 164 |
+
containerEl.onclick = () => {
|
| 165 |
if (interval) {
|
| 166 |
clearInterval(interval);
|
| 167 |
}
|