12345678910111213141516171819202122232425262728293031323334353637 |
- import { Platform } from '../../platform/platform';
- /**
- * @hidden
- */
- export declare class ItemReorderGesture {
- plt: Platform;
- reorderList: ItemReorderGestureDelegate;
- private selectedItemEle;
- private selectedItemHeight;
- private offset;
- private lastToIndex;
- private lastYcoord;
- private lastScrollPosition;
- private emptyZone;
- private windowHeight;
- private events;
- constructor(plt: Platform, reorderList: ItemReorderGestureDelegate);
- private onDragStart(ev);
- private onDragMove(ev);
- private onDragEnd(ev);
- private itemForCoord(coord);
- private scroll(posY);
- /**
- * @hidden
- */
- destroy(): void;
- }
- export interface ItemReorderGestureDelegate {
- _isStart: boolean;
- getNativeElement: () => any;
- _reorderPrepare: () => void;
- _scrollContent: (scrollPosition: number) => number;
- _reorderStart: () => void;
- _reorderMove: (fromIndex: number, toIndex: number, itemHeight: number) => void;
- _reorderEmit: (fromIndex: number, toIndex: number) => void;
- }
|