Skip to content

Commit 8542b2a

Browse files
Update drag-sort-list.ts
1 parent e302929 commit 8542b2a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

addon/components/drag-sort-list.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export default class DragSortList extends Component<DragSortListSignature> {
145145
});
146146
};
147147

148-
getClosestHorizontalIndex = (event: Event) => {
148+
getClosestHorizontalIndex = (event: DragEvent) => {
149149
// Calculate which item is closest and make that the target
150150
const itemsNodeList = this.el.querySelectorAll('.dragSortItem');
151151
const draggableItems = A(Array.prototype.slice.call(itemsNodeList));
@@ -186,7 +186,7 @@ export default class DragSortList extends Component<DragSortListSignature> {
186186
this.dragSort.draggingOver({ group, index, items, isDraggingUp });
187187
};
188188

189-
isDraggingOverHorizontal = (event: Event) => {
189+
isDraggingOverHorizontal = (event: DragEvent) => {
190190
const dragSort = this.dragSort;
191191
const group = this.args.group;
192192
const items = this.args.items;

0 commit comments

Comments
 (0)