UNPKG

1.09 kBTypeScriptView Raw
1import { ElementRef } from '@angular/core';
2/**
3 * If the window isn't scrollable, then place this on the scrollable container that draggable elements are inside. e.g.
4 * ```html
5 <div style="overflow: scroll" mwlDraggableScrollContainer>
6 <div mwlDraggable>Drag me!</div>
7 </div>
8 ```
9 */
10export declare class DraggableScrollContainerDirective {
11 elementRef: ElementRef<HTMLElement>;
12 /**
13 * Trigger the DragStart after a long touch in scrollable container when true
14 * @deprecated will be removed in v5 (use [touchStartLongPress]="{delay: 300, delta: 30}" on the mwlDraggable element instead)
15 */
16 activeLongPressDrag: boolean;
17 /**
18 * Configuration of a long touch
19 * Duration in ms of a long touch before activating DragStart
20 * Delta of the
21 * @deprecated will be removed in v5 (use [touchStartLongPress]="{delay: 300, delta: 30}" on the mwlDraggable element instead)
22 */
23 longPressConfig: {
24 duration: number;
25 delta: number;
26 };
27 /**
28 * @hidden
29 */
30 constructor(elementRef: ElementRef<HTMLElement>);
31}