rep: change interaction buzz & buzz once initially
parent
0bb1fb3ffe
commit
1126105ea2
|
|
@ -41,6 +41,7 @@ const ffStep = 5 * 1000;
|
||||||
let state: State | undefined;
|
let state: State | undefined;
|
||||||
let drawInterval: IntervalId | undefined;
|
let drawInterval: IntervalId | undefined;
|
||||||
let lastRepIndex: number | null = null;
|
let lastRepIndex: number | null = null;
|
||||||
|
let firstTime = true;
|
||||||
|
|
||||||
const renderDuration = (l: Layout.RenderedHierarchy) => {
|
const renderDuration = (l: Layout.RenderedHierarchy) => {
|
||||||
let lbl;
|
let lbl;
|
||||||
|
|
@ -288,9 +289,10 @@ const drawRep = () => {
|
||||||
layout.render();
|
layout.render();
|
||||||
};
|
};
|
||||||
|
|
||||||
const buzzInteraction = () => Bangle.buzz(20);
|
const buzzInteraction = () => Bangle.buzz(250);
|
||||||
const buzzNewRep = () => {
|
const buzzNewRep = () => {
|
||||||
let n = 3;
|
let n = firstTime ? 1 : 3;
|
||||||
|
firstTime = false;
|
||||||
const buzz = () => {
|
const buzz = () => {
|
||||||
Bangle.buzz(1000).then(() => {
|
Bangle.buzz(1000).then(() => {
|
||||||
if (--n <= 0)
|
if (--n <= 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue