Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/view/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ var View = Base.extend(Emitter, /** @lends View# */{
getZoom: function() {
var scaling = this._decompose().scaling;
// Use average since it can be non-uniform.
return (scaling.x + scaling.y) / 2;
return (Math.abs(scaling.x) + Math.abs(scaling.y)) / 2; // for mirrored in x (x=-1, y=1), result was 0 and crash project dividing by 0
},

setZoom: function(zoom) {
Expand Down