refactor(backdrop): place disable-scroll class on ion-app

This commit is contained in:
Adam Bradley
2016-07-01 21:44:53 -05:00
parent aebdf2f6e0
commit f1433c6314
4 changed files with 18 additions and 22 deletions

View File

@ -1,4 +1,4 @@
import { Component, ComponentResolver, EventEmitter, Injectable, Renderer, ViewChild, ViewContainerRef } from '@angular/core';
import { Component, ComponentResolver, EventEmitter, HostBinding, Injectable, Renderer, ViewChild, ViewContainerRef } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { ClickBlock } from '../../util/click-block';
@ -297,6 +297,8 @@ export class AppRoot {
});
}
@HostBinding('class.disable-scroll') disableScroll: boolean = false;
}
const CLICK_BLOCK_BUFFER_IN_MILLIS = 64;