mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
fix(nav): swipe to go back gesture
- smoother by debouncing touch events (reduces bank) - dynamic animation duration - intelligent behavior based in the position, speed and direccion of the swipe (sharing logic with sliding item) fixes #8919 fixes #8958 fixes #7934
This commit is contained in:

committed by
Adam Bradley

parent
033e1eae17
commit
04d61ee47a
@ -3,7 +3,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
|
||||
|
||||
import { clamp, isNumber, isPresent, isString, isTrueProperty } from '../../util/util';
|
||||
import { Config } from '../../config/config';
|
||||
import { Debouncer } from '../../util/debouncer';
|
||||
import { TimeoutDebouncer } from '../../util/debouncer';
|
||||
import { Form } from '../../util/form';
|
||||
import { Ion } from '../ion';
|
||||
import { Item } from '../item/item';
|
||||
@ -217,7 +217,7 @@ export class Range extends Ion implements AfterViewInit, ControlValueAccessor, O
|
||||
_step: number = 1;
|
||||
_snaps: boolean = false;
|
||||
|
||||
_debouncer: Debouncer = new Debouncer(0);
|
||||
_debouncer: TimeoutDebouncer = new TimeoutDebouncer(0);
|
||||
_events: UIEventManager = new UIEventManager();
|
||||
/**
|
||||
* @private
|
||||
|
Reference in New Issue
Block a user