Commit ba604922f0bcd5a6abecfc5753e602865f932ad6
1 parent
3d204ecbdc
Exists in
develop
Fix
scroll event
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
src/app/shared/promocion/promocion.component.ts
... | ... | @@ -78,6 +78,12 @@ export class PromocionComponent implements OnInit { |
78 | 78 | this.inactiveScreen.startTimeOutInactividad(); |
79 | 79 | } |
80 | 80 | |
81 | + @HostListener('scroll', ['$event']) | |
82 | + scrollEvent(event: Event) { | |
83 | + clearTimeout(this.inactiveScreen.timerReposo); | |
84 | + this.inactiveScreen.startTimeOutInactividad(); | |
85 | + } | |
86 | + | |
81 | 87 | mediaPantalla() { |
82 | 88 | if ($('body').hasClass('media-pantalla')) { |
83 | 89 | $('.modal-content').addClass('media-pantalla'); |