Simplify Configuration

This commit is contained in:
Alex Dima
2021-12-29 12:14:54 +01:00
parent b504cc6daa
commit 4e5452258a
13 changed files with 241 additions and 230 deletions

View File

@@ -420,7 +420,7 @@ export class View extends ViewEventHandler {
// Try to detect browser zooming and paint again if necessary
if (Math.abs(browser.getPixelRatio() - this._configPixelRatio) > 0.001) {
// looks like the pixel ratio has changed
this._context.configuration.updatePixelRatio();
this._context.configuration.observePixelRatio();
}
}