From ac808e69e44ebd787232e2acf72525f5f1549af9 Mon Sep 17 00:00:00 2001 From: JannisX11 Date: Wed, 19 Apr 2023 16:05:49 +0200 Subject: [PATCH] Fix #1836 unable to paint on mobile after selecting color Fix splash art not visible on mobile --- css/start_screen.css | 1 + js/undo.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/css/start_screen.css b/css/start_screen.css index 40324e700..9ae77a328 100644 --- a/css/start_screen.css +++ b/css/start_screen.css @@ -300,6 +300,7 @@ } #splash_screen .splash_art_slideshow_image { width: 100%; + height: 100%; background-size: cover; background-position: center; } diff --git a/js/undo.js b/js/undo.js index 375319ebc..b662cd726 100644 --- a/js/undo.js +++ b/js/undo.js @@ -4,9 +4,9 @@ class UndoSystem { this.history = []; } startChange(amended) { - if (this.current_save && Painter.painting) { + /*if (this.current_save && Painter.painting) { throw 'Canceled edit: Cannot perform edits while painting' - } + }*/ /*if (this.current_save && Transformer.dragging) { throw 'Canceled edit: Cannot perform other edits while transforming elements' }*/