File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,12 @@ export class ScrollDispatcher {
58
58
* to override the default "throttle" time.
59
59
*/
60
60
scrolled ( auditTimeInMs : number = DEFAULT_AUDIT_TIME ) : Observable < void > {
61
+ // In the case of a 0ms delay, return the observable without auditTime since it does add
62
+ // a perceptible delay in processing overhead.
63
+ if ( auditTimeInMs == 0 ) {
64
+ return this . _scrolled . asObservable ( ) ;
65
+ }
66
+
61
67
return this . _scrolled . asObservable ( ) . auditTime ( auditTimeInMs ) ;
62
68
}
63
69
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export type TooltipPosition = 'left' | 'right' | 'above' | 'below' | 'before' |
39
39
export const TOUCHEND_HIDE_DELAY = 1500 ;
40
40
41
41
/** Time in ms to throttle repositioning after scroll events. */
42
- export const SCROLL_THROTTLE_MS = 10 ;
42
+ export const SCROLL_THROTTLE_MS = 0 ;
43
43
44
44
/**
45
45
* Directive that attaches a material design tooltip to the host element. Animates the showing and
You can’t perform that action at this time.
0 commit comments