Skip to content
Snippets Groups Projects
Commit 9952b148 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Revert "Don't emit scaleX/Y in the preview event"

This reverts commit fd770eca.

The scale factor was used to restore the previous position. Not sure
why it's needed, but revert for now.
parent 899becf4
No related branches found
No related tags found
No related merge requests found
Pipeline #11942 passed with warnings
...@@ -378,6 +378,8 @@ export class PdfPreview extends ScopedElementsMixin(VPULitElement) { ...@@ -378,6 +378,8 @@ export class PdfPreview extends ScopedElementsMixin(VPULitElement) {
const data = { const data = {
"currentPage": this.currentPage, "currentPage": this.currentPage,
"scaleX": item.get("scaleX") / this.canvasToPdfScale,
"scaleY": item.get("scaleY") / this.canvasToPdfScale,
"width": item.get("width") * item.get("scaleX") / this.canvasToPdfScale, "width": item.get("width") * item.get("scaleX") / this.canvasToPdfScale,
"height": item.get("height") * item.get("scaleY") / this.canvasToPdfScale, "height": item.get("height") * item.get("scaleY") / this.canvasToPdfScale,
"left": left / this.canvasToPdfScale, "left": left / this.canvasToPdfScale,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment