Permalink
Browse files

fix(rtl): change item reorder offset for RTL (#11395)

  • Loading branch information...
AmitMY authored and manucorporat committed Apr 30, 2017
1 parent 588fad8 commit 665e44f6335158c56d2a0f067b5b1737bb945379
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/components/item/item-reorder-gesture.ts
@@ -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());

0 comments on commit 665e44f

Please sign in to comment.