Skip to content

Commit 21ce55c

Browse files
committed
Get rid of 'block' direct calls
1 parent 113fc50 commit 21ce55c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Example/imageViewer/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function runTiming(clock, value, dest, startStopClock = true) {
122122
easing: Easing.inOut(Easing.cubic),
123123
};
124124

125-
return block([
125+
return [
126126
cond(clockRunning(clock), 0, [
127127
set(state.finished, 0),
128128
set(state.frameTime, 0),
@@ -134,7 +134,7 @@ function runTiming(clock, value, dest, startStopClock = true) {
134134
timing(clock, state, config),
135135
startStopClock && cond(state.finished, stopClock(clock)),
136136
state.position,
137-
]);
137+
];
138138
}
139139

140140
function runDecay(clock, value, velocity) {
@@ -147,7 +147,7 @@ function runDecay(clock, value, velocity) {
147147

148148
const config = { deceleration: 0.99 };
149149

150-
return block([
150+
return [
151151
cond(clockRunning(clock), 0, [
152152
set(state.finished, 0),
153153
set(state.velocity, velocity),
@@ -159,7 +159,7 @@ function runDecay(clock, value, velocity) {
159159
decay(clock, state, config),
160160
cond(state.finished, stopClock(clock)),
161161
state.position,
162-
]);
162+
];
163163
}
164164

165165
function bouncyPinch(

0 commit comments

Comments
 (0)