提交 a7326715 编写于 作者: M Matt Bierner

Explicitly implement IStandardWindow

上级 e95a1f45
......@@ -634,11 +634,11 @@ export function getDomNodePagePosition(domNode: HTMLElement): IDomNodePagePositi
}
export interface IStandardWindow {
scrollX: number;
scrollY: number;
readonly scrollX: number;
readonly scrollY: number;
}
export const StandardWindow: IStandardWindow = new class {
export const StandardWindow: IStandardWindow = new class implements IStandardWindow {
get scrollX(): number {
if (typeof window.scrollX === 'number') {
// modern browsers
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册