Skip to content

Commit ca7e7e6

Browse files
committed
1 parent 0a956f1 commit ca7e7e6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/project-editor/lvgl/widgets/Spinner.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,14 @@ export class LVGLSpinnerWidget extends LVGLWidget {
6969
const ARC_LENGTH = 60;
7070
code.createObject(`lv_spinner_create`, SPIN_TIME, ARC_LENGTH);
7171
}
72+
73+
// do not animate spinner when in editor mode
74+
if (code.pageRuntime && code.pageRuntime.isEditor) {
75+
if (code.isV9) {
76+
code.callFreeFunction(`lv_anim_delete_all`);
77+
} else {
78+
code.callFreeFunction(`lv_anim_del_all`);
79+
}
80+
}
7281
}
7382
}

0 commit comments

Comments
 (0)