We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 386d5b4 commit a24fa47Copy full SHA for a24fa47
1 file changed
src/components/audio/component.js
@@ -87,6 +87,7 @@ class Audio extends Component {
87
canvasCx: null,
88
canvasCy: null,
89
canvasCoord: null,
90
+ firstDraw: true,
91
92
/**
93
* Framer Context
@@ -744,9 +745,17 @@ class Audio extends Component {
744
745
}
746
747
sceneRender() {
- requestAnimationFrame(() => {
748
+ if (this.state.firstDraw) {
749
this.sceneClear()
750
this.sceneDraw()
751
+ this.setState({ firstDraw: false })
752
+ }
753
+
754
+ requestAnimationFrame(() => {
755
+ if (this.state.playing) {
756
+ this.sceneClear()
757
+ this.sceneDraw()
758
759
if (this.state.sceneInProcess) {
760
this.sceneRender()
761
0 commit comments