Skip to content

Commit

Permalink
I coulnt read the signs... ^^
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuzzyma committed Jul 21, 2021
1 parent 582ecda commit 7c22830
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/svg.panzoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,18 @@ extend(Svg, {
preserveAspectRatio.align === preserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMID ||
preserveAspectRatio.align === preserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMID ||
preserveAspectRatio.align === preserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMID) {
viewportTopOffset = -offset / 2
viewportBottomOffset = offset / 2
viewportTopOffset = offset / 2
viewportBottomOffset = -offset / 2
} else if (
preserveAspectRatio.align === preserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMIN ||
preserveAspectRatio.align === preserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMIN ||
preserveAspectRatio.align === preserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMIN) {
viewportBottomOffset = offset
viewportBottomOffset = -offset
} else if (
preserveAspectRatio.align === preserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMAX ||
preserveAspectRatio.align === preserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMAX ||
preserveAspectRatio.align === preserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMAX) {
viewportTopOffset = -offset
viewportTopOffset = offset
}
}

Expand Down

0 comments on commit 7c22830

Please sign in to comment.