mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-01-18 15:26:19 +08:00
Fix #1427 Shifting UI when pressing PageUp/Down
Fix #1537 Mirror Painting not working
This commit is contained in:
parent
1007dbbc55
commit
120eee1989
@ -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
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user