Skip to content

Commit

Permalink
fix(rtl): change item reorder offset for RTL (#11395)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitMY authored and manucorporat committed Apr 30, 2017
1 parent 588fad8 commit 665e44f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/item/item-reorder-gesture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ export class ItemReorderGesture {
}

private itemForCoord(coord: PointerCoordinates): HTMLElement {
const x = this.offset.x - 100;
const sideOffset = this.plt.isRTL ? 100 : -100;
const x = this.offset.x + sideOffset;
const y = coord.y;
const element = this.plt.getElementFromPoint(x, y);
return findReorderItem(element, this.reorderList.getNativeElement());
Expand Down

0 comments on commit 665e44f

Please sign in to comment.