From e0c21290c2e7f1f0b6f534a176c006a43dfe3427 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Sat, 17 Sep 2016 15:43:57 +0200 Subject: [PATCH] fix(item): regression in sliding item introduced by 52ada1c --- src/components/item/item-sliding-gesture.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/item/item-sliding-gesture.ts b/src/components/item/item-sliding-gesture.ts index c7f5de1244d..5024e775526 100644 --- a/src/components/item/item-sliding-gesture.ts +++ b/src/components/item/item-sliding-gesture.ts @@ -64,7 +64,10 @@ export class ItemSlidingGesture extends PanGesture { onDragEnd(ev: any) { ev.preventDefault(); - + let coordX = pointerCoord(ev).x; + let deltaX = (coordX - this.firstCoordX); + let deltaT = (Date.now() - this.firstTimestamp); + this.selectedContainer.endSliding(deltaX / deltaT); this.selectedContainer = null; this.preSelectedContainer = null; }