Skip to content

Commit 665e44f

Browse files
AmitMYmanucorporat
authored andcommitted
fix(rtl): change item reorder offset for RTL (#11395)
1 parent 588fad8 commit 665e44f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/item/item-reorder-gesture.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ export class ItemReorderGesture {
134134
}
135135

136136
private itemForCoord(coord: PointerCoordinates): HTMLElement {
137-
const x = this.offset.x - 100;
137+
const sideOffset = this.plt.isRTL ? 100 : -100;
138+
const x = this.offset.x + sideOffset;
138139
const y = coord.y;
139140
const element = this.plt.getElementFromPoint(x, y);
140141
return findReorderItem(element, this.reorderList.getNativeElement());

0 commit comments

Comments
 (0)