MCPcopy Index your code
hub / github.com/angular/components / handler

Method handler

src/cdk/drag-drop/drag-ref.ts:1199–1210  ·  view source on GitHub ↗
(event: TransitionEvent)

Source from the content-addressed store, hash-verified

1197 return this._ngZone.runOutsideAngular(() => {
1198 return new Promise(resolve => {
1199 const handler = (event: TransitionEvent) => {
1200 if (
1201 !event ||
1202 (this._preview &&
1203 _getEventTarget(event) === this._preview.element &&
1204 event.propertyName === 'transform')
1205 ) {
1206 cleanupListener();
1207 resolve();
1208 clearTimeout(timeout);
1209 }
1210 };
1211
1212 // If a transition is short enough, the browser might not fire the `transitionend` event.
1213 // Since we know how long it's supposed to take, add a timeout with a 50% buffer that'll

Callers 1

handleFunction · 0.45

Calls 1

_getEventTargetFunction · 0.90

Tested by

no test coverage detected