mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-28 15:47:48 +01:00
less precise todo transitions => more fps
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Transition } from 'react-spring';
|
||||
import { config } from 'react-spring';
|
||||
|
||||
import Todo from './Todo';
|
||||
|
||||
@@ -14,6 +15,12 @@ export default function TodosContainer({
|
||||
<ul id="list">
|
||||
<Transition
|
||||
native
|
||||
config={{
|
||||
...config.default,
|
||||
overshootClamping: true,
|
||||
restSpeedThreshold: 1,
|
||||
restDisplacementThreshold: 1,
|
||||
}}
|
||||
items={todos}
|
||||
keys={todo => todo.id}
|
||||
from={{
|
||||
|
||||
Reference in New Issue
Block a user