@@ -455,7 +455,8 @@ export class MatTooltip implements OnDestroy, AfterViewInit {
455
455
const overlayRef = this . _createOverlay ( origin ) ;
456
456
this . _detach ( ) ;
457
457
this . _portal =
458
- this . _portal || new ComponentPortal ( this . _tooltipComponent , this . _injector . get ( ViewContainerRef ) ) ;
458
+ this . _portal ||
459
+ new ComponentPortal ( this . _tooltipComponent , this . _injector . get ( ViewContainerRef ) ) ;
459
460
const instance = ( this . _tooltipInstance = overlayRef . attach ( this . _portal ) . instance ) ;
460
461
instance . _triggerElement = this . _elementRef . nativeElement ;
461
462
instance . _mouseLeaveHideDelay = this . _hideDelay ;
@@ -505,9 +506,9 @@ export class MatTooltip implements OnDestroy, AfterViewInit {
505
506
this . _detach ( ) ;
506
507
}
507
508
508
- const scrollableAncestors = this . _injector . get ( ScrollDispatcher ) . getAncestorScrollContainers (
509
- this . _elementRef ,
510
- ) ;
509
+ const scrollableAncestors = this . _injector
510
+ . get ( ScrollDispatcher )
511
+ . getAncestorScrollContainers ( this . _elementRef ) ;
511
512
512
513
const overlay = this . _injector . get ( Overlay ) ;
513
514
@@ -869,7 +870,9 @@ export class MatTooltip implements OnDestroy, AfterViewInit {
869
870
/** Listener for the `wheel` event on the element. */
870
871
private _wheelListener ( event : WheelEvent ) {
871
872
if ( this . _isTooltipVisible ( ) ) {
872
- const elementUnderPointer = this . _injector . get ( DOCUMENT ) . elementFromPoint ( event . clientX , event . clientY ) ;
873
+ const elementUnderPointer = this . _injector
874
+ . get ( DOCUMENT )
875
+ . elementFromPoint ( event . clientX , event . clientY ) ;
873
876
const element = this . _elementRef . nativeElement ;
874
877
875
878
// On non-touch devices we depend on the `mouseleave` event to close the tooltip, but it
0 commit comments