mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Set preview render flag when updating TILED_PREVIEW seW
This commit is contained in:
parent
fe95abca0f
commit
43e60e300c
@ -1,6 +1,8 @@
|
||||
(function () {
|
||||
var ns = $.namespace('pskl.controller.preview');
|
||||
|
||||
var POPUP_TITLE = 'Piskel - preview';
|
||||
|
||||
ns.PopupPreviewController = function (piskelController) {
|
||||
this.piskelController = piskelController;
|
||||
this.popup = null;
|
||||
@ -25,6 +27,7 @@
|
||||
};
|
||||
|
||||
ns.PopupPreviewController.prototype.onPopupLoaded = function () {
|
||||
this.popup.document.title = POPUP_TITLE;
|
||||
pskl.utils.Event.addEventListener(this.popup, 'resize', this.onWindowResize_, this);
|
||||
pskl.utils.Event.addEventListener(this.popup, 'unload', this.onPopupClosed_, this);
|
||||
var container = this.popup.document.querySelector('.preview-container');
|
||||
|
@ -86,6 +86,7 @@
|
||||
var isTiled = pskl.UserSettings.get(pskl.UserSettings.TILED_PREVIEW);
|
||||
var zoom = isTiled ? 1 : this.calculateZoom_();
|
||||
this.renderer.setZoom(zoom);
|
||||
this.setRenderFlag_(true);
|
||||
};
|
||||
|
||||
ns.PreviewController.prototype.getZoom = function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user