onWindowResize -> onDevicePixelRatioChange

This commit is contained in:
Daniel Imms
2019-05-18 19:27:06 -07:00
parent 5f70b3f3be
commit 24de302d2f
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -31,12 +31,12 @@ export class RenderCoordinator extends Disposable {
this.register(this._renderDebouncer);
this._screenDprMonitor = new ScreenDprMonitor();
this._screenDprMonitor.setListener(() => this._renderer.onWindowResize(window.devicePixelRatio));
this._screenDprMonitor.setListener(() => this._renderer.onDevicePixelRatioChange());
this.register(this._screenDprMonitor);
// dprchange should handle this case, we need this as well for browsers that don't support the
// matchMedia query.
this.register(addDisposableDomListener(window, 'resize', () => this._renderer.onWindowResize(window.devicePixelRatio)));
this.register(addDisposableDomListener(window, 'resize', () => this._renderer.onDevicePixelRatioChange()));
}
public refreshRows(start: number, end: number): void {