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