Fix rescale bug
This commit is contained in:
parent
df0ee70e36
commit
06cdff3612
|
|
@ -180,9 +180,9 @@ rescale = function(factor) {
|
|||
}
|
||||
|
||||
conf.scale = factor;
|
||||
x = c.width - c.width * factor;
|
||||
y = c.height - c.height * factor;
|
||||
c.style[tp] = "scale(" + conf.scale + ") translate(-" + x + "px, -" + y + "px)";
|
||||
x = -((c.width - c.width * factor) / 2 / factor);
|
||||
y = -((c.height - c.height * factor) / 2 / factor);
|
||||
c.style[tp] = "scale(" + conf.scale + ") translate(" + x + "px, " + y + "px)";
|
||||
};
|
||||
|
||||
setFillColor = function(color) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue