Fix #1427 Shifting UI when pressing PageUp/Down

Fix #1537 Mirror Painting not working
This commit is contained in:
JannisX11 2022-08-24 19:09:36 +02:00
parent 1007dbbc55
commit 120eee1989
2 changed files with 6 additions and 1 deletions

View File

@ -609,6 +609,11 @@ addEventListeners(document, 'keydown mousedown', function(e) {
var used = false;
var input_focus = getFocusedTextInput()
// Fix #1427
if (e.code == 'PageUp' || e.code == 'PageDown') {
e.preventDefault();
}
if (input_focus) {
//User Editing Anything

View File

@ -687,7 +687,7 @@ const Painter = {
}
let targets = [];
if (uvTag & Painter.current.element) {
if (uvTag && Painter.current.element) {
let mirror_vectors = [[
Painter.mirror_painting_options.axis.x?1:0,
Painter.mirror_painting_options.axis.y?1:0,