Skip to content

Commit

Permalink
fix(item): regression in sliding item introduced by 52ada1c
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Sep 17, 2016
1 parent b750e46 commit e0c2129
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/item/item-sliding-gesture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e0c2129

Please sign in to comment.