From aecd8926c6c7bd7bcc0751e38b4459b57a87821c Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Thu, 28 Jul 2022 22:28:34 -0400 Subject: Fix bug with rotation --- scripts/cards/deck.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/cards') diff --git a/scripts/cards/deck.js b/scripts/cards/deck.js index f1e2689..b1c7fd2 100644 --- a/scripts/cards/deck.js +++ b/scripts/cards/deck.js @@ -50,8 +50,8 @@ class Deck { // x and y values are on a scale from 0 to 1, 0 being top left, 1 being bottom right. this.e.style.setProperty("--x", options.pos[0]); this.e.style.setProperty("--y", options.pos[1]); - this.e.style.setProperty("--rot", options.pos[2]); - this.e.style.setProperty("--scale", options.pos[3] + "deg"); + this.e.style.setProperty("--rot", options.pos[2] + "deg"); + this.e.style.setProperty("--scale", options.pos[3]); this.e.setAttribute("mode", options.mode); -- cgit v1.2.3