mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
fix(gestures): gesture controller handled by components
* fix(gestures): gesture controller is handled by components fixes #9046 * fix(gestures): adds hybrid disable scroll assistance fixes #9130 fixes #9052 fixes #7444
This commit is contained in:

committed by
Adam Bradley

parent
339857af1e
commit
32ab817181
@ -1,11 +1,15 @@
|
||||
import { assign, swipeShouldReset } from '../util/util';
|
||||
import { GestureController, GesturePriority, DisableScroll } from '../gestures/gesture-controller';
|
||||
import { GestureController, GesturePriority, GESTURE_GO_BACK_SWIPE } from '../gestures/gesture-controller';
|
||||
import { NavControllerBase } from './nav-controller-base';
|
||||
import { SlideData } from '../gestures/slide-gesture';
|
||||
import { SlideEdgeGesture } from '../gestures/slide-edge-gesture';
|
||||
import { NativeRafDebouncer } from '../util/debouncer';
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export class SwipeBackGesture extends SlideEdgeGesture {
|
||||
|
||||
constructor(
|
||||
private _nav: NavControllerBase,
|
||||
element: HTMLElement,
|
||||
@ -17,11 +21,11 @@ export class SwipeBackGesture extends SlideEdgeGesture {
|
||||
maxEdgeStart: 75,
|
||||
zone: false,
|
||||
threshold: 0,
|
||||
maxAngle: 40,
|
||||
debouncer: new NativeRafDebouncer(),
|
||||
gesture: gestureCtlr.create('goback-swipe', {
|
||||
gesture: gestureCtlr.createGesture({
|
||||
name: GESTURE_GO_BACK_SWIPE,
|
||||
priority: GesturePriority.GoBackSwipe,
|
||||
disableScroll: DisableScroll.DuringCapture
|
||||
disableScroll: true
|
||||
})
|
||||
}, options));
|
||||
}
|
||||
|
Reference in New Issue
Block a user