@@ -27,7 +27,7 @@ import {
2727 SkipSelf ,
2828 ViewContainerRef ,
2929} from '@angular/core' ;
30- import { merge , Observable , Subject } from 'rxjs' ;
30+ import { merge , Observable , Subject , Observer } from 'rxjs' ;
3131import { takeUntil , take } from 'rxjs/operators' ;
3232import { DragDropRegistry } from './drag-drop-registry' ;
3333import {
@@ -173,15 +173,16 @@ export class CdkDrag<T = any> implements AfterViewInit, OnDestroy {
173173 * Emits as the user is dragging the item. Use with caution,
174174 * because this event will fire for every pixel that the user has dragged.
175175 */
176- @Output ( 'cdkDragMoved' ) moved : Observable < CdkDragMove < T > > = Observable . create ( observer => {
177- const subscription = this . _moveEvents . subscribe ( observer ) ;
178- this . _moveEventSubscriptions ++ ;
179-
180- return ( ) => {
181- subscription . unsubscribe ( ) ;
182- this . _moveEventSubscriptions -- ;
183- } ;
184- } ) ;
176+ @Output ( 'cdkDragMoved' ) moved : Observable < CdkDragMove < T > > =
177+ Observable . create ( ( observer : Observer < CdkDragMove < T > > ) => {
178+ const subscription = this . _moveEvents . subscribe ( observer ) ;
179+ this . _moveEventSubscriptions ++ ;
180+
181+ return ( ) => {
182+ subscription . unsubscribe ( ) ;
183+ this . _moveEventSubscriptions -- ;
184+ } ;
185+ } ) ;
185186
186187 constructor (
187188 /** Element that the draggable is attached to. */
@@ -428,7 +429,7 @@ export class CdkDrag<T = any> implements AfterViewInit, OnDestroy {
428429 * Updates the item's position in its drop container, or moves it
429430 * into a new one, depending on its current drag position.
430431 */
431- private _updateActiveDropContainer ( { x, y} ) {
432+ private _updateActiveDropContainer ( { x, y} : Point ) {
432433 // Drop container that draggable has been moved into.
433434 let newContainer = this . dropContainer . _getSiblingContainerFromPosition ( this , x , y ) ;
434435
0 commit comments