fix(animation): add cubic-bezier conversions for gesture animations (#19134)

* enable linear easing switch on progressEnd

* Add easing to menu

* remove console log

* Add tests

* clean up code

* update comments
This commit is contained in:
Liam DeBeasi
2019-08-19 13:18:49 -04:00
committed by GitHub
parent fd65765bdf
commit 5a2c441b3c
7 changed files with 226 additions and 6 deletions

View File

@ -1,4 +1,3 @@
import { Gesture, GestureDetail, createGesture } from './index';
export const createSwipeBackGesture = (
@ -37,6 +36,7 @@ export const createSwipeBackGesture = (
const dur = missingDistance / Math.abs(velocity);
realDur = Math.min(dur, 300);
}
onEndHandler(shouldComplete, stepValue, realDur);
};