fix(gestures): drag events are debounced

- Performance regressions in menu, sliding item, toggle, go back swipe and scroll up to refresh.
- Buggy sliding item
This commit is contained in:
Manu Mtz.-Almeida
2017-01-21 00:56:09 +01:00
parent ee2268f42a
commit 23a70e151e
2 changed files with 22 additions and 24 deletions

View File

@ -110,7 +110,9 @@ export class PanGesture {
pointerMove(ev: any) {
assert(this.started === true, 'started must be true');
if (this.captured) {
this.onDragMove(ev);
this.debouncer.write(() => {
this.onDragMove(ev);
});
return;
}