mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
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:
@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user