mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Bug in undo when cancelling Shape tool used with Shift key
This commit is contained in:
parent
25bb46d097
commit
043f077408
@ -169,6 +169,7 @@
|
|||||||
var width = this.zoom * this.piskelController.getCurrentFrame().getWidth();
|
var width = this.zoom * this.piskelController.getCurrentFrame().getWidth();
|
||||||
var verticalMargin = (Constants.PREVIEW_FILM_SIZE - width) / 2;
|
var verticalMargin = (Constants.PREVIEW_FILM_SIZE - width) / 2;
|
||||||
canvasContainer.style.marginLeft = verticalMargin + 'px';
|
canvasContainer.style.marginLeft = verticalMargin + 'px';
|
||||||
|
canvasContainer.style.marginRight = verticalMargin + 'px';
|
||||||
|
|
||||||
|
|
||||||
var canvasBackground = document.createElement("div");
|
var canvasBackground = document.createElement("div");
|
||||||
|
@ -49,10 +49,10 @@
|
|||||||
var coords = this.getCoordinates_(col, row, event);
|
var coords = this.getCoordinates_(col, row, event);
|
||||||
this.draw_(coords.col, coords.row, color, frame);
|
this.draw_(coords.col, coords.row, color, frame);
|
||||||
|
|
||||||
$.publish(Events.DRAG_END, [col, row]);
|
$.publish(Events.DRAG_END, [coords.col, coords.row]);
|
||||||
this.raiseSaveStateEvent({
|
this.raiseSaveStateEvent({
|
||||||
col : col,
|
col : coords.col,
|
||||||
row : row,
|
row : coords.row,
|
||||||
startCol : this.startCol,
|
startCol : this.startCol,
|
||||||
startRow : this.startRow,
|
startRow : this.startRow,
|
||||||
color : color
|
color : color
|
||||||
|
Loading…
x
Reference in New Issue
Block a user