mirror of
https://github.com/zhigang1992/react-native-reanimated.git
synced 2026-04-29 04:45:10 +08:00
spr
This commit is contained in:
@@ -25,8 +25,6 @@ const MAX_STEPS_MS = 64;
|
||||
export default function spring(clock, state, config) {
|
||||
const lastTime = cond(state.time, state.time, clock);
|
||||
|
||||
const initTime = new AnimatedValue(0);
|
||||
|
||||
const deltaTime = min(sub(clock, lastTime), MAX_STEPS_MS);
|
||||
|
||||
const c = config.damping;
|
||||
@@ -105,7 +103,6 @@ export default function spring(clock, state, config) {
|
||||
);
|
||||
|
||||
return block([
|
||||
cond(initTime, 0, set(initTime, clock)),
|
||||
set(prevPosition, state.position),
|
||||
cond(
|
||||
lessThan(zeta, 1),
|
||||
|
||||
Reference in New Issue
Block a user