* Sets which parent elements are can be scrolled while the user is dragging. * @param elements Elements that can be scrolled.
(elements: HTMLElement[])
| 392 | * @param elements Elements that can be scrolled. |
| 393 | */ |
| 394 | withScrollableParents(elements: HTMLElement[]): this { |
| 395 | const element = this._container; |
| 396 | |
| 397 | // We always allow the current element to be scrollable |
| 398 | // so we need to ensure that it's in the array. |
| 399 | this._scrollableElements = |
| 400 | elements.indexOf(element) === -1 ? [element, ...elements] : elements.slice(); |
| 401 | return this; |
| 402 | } |
| 403 | |
| 404 | /** |
| 405 | * Configures the drop list so that a different element is used as the container for the |
no outgoing calls
no test coverage detected