From 0cc41ee267c90f637e9419bb55c383b965d4453a Mon Sep 17 00:00:00 2001 From: Tamara Carina Steinwender <tamara.steinwender@student.tugraz.at> Date: Tue, 20 Oct 2020 12:23:50 +0200 Subject: [PATCH] Fix draw lines in QR code scanner --- packages/qr-code-scanner/src/qr-code-scanner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/qr-code-scanner/src/qr-code-scanner.js b/packages/qr-code-scanner/src/qr-code-scanner.js index 417a93bf..0d918a11 100644 --- a/packages/qr-code-scanner/src/qr-code-scanner.js +++ b/packages/qr-code-scanner/src/qr-code-scanner.js @@ -288,7 +288,7 @@ export class QrCodeScanner extends ScopedElementsMixin(DBPLitElement) { canvas.moveTo(0,0); canvas.lineTo(0, canvasElement.width); canvas.lineTo( canvasElement.width, canvasElement.height); - canvas.lineTo( canvasElement.height,0); + canvas.lineTo( 0,canvasElement.height); canvas.rect(maskStartX, maskStartY, maskWidth, maskHeight); canvas.fill(); -- GitLab