Fix UV editor navigation issue on Firefox + iOS

This commit is contained in:
JannisX11 2023-12-04 14:22:04 +01:00
parent 6ec92092d9
commit 60162a1278
2 changed files with 8 additions and 0 deletions

View File

@ -1958,6 +1958,13 @@ span.controller_state_section_info {
object-fit: cover; object-fit: cover;
object-position: 0 0; object-position: 0 0;
} }
/* Fix in Firefox + iPadOS */
#uv_frame_spacer {
width: 1px;
height: 1px;
pointer-events: none;
position: relative;
}
#uv_texture_grid { #uv_texture_grid {
position: absolute; position: absolute;
pointer-events: none; pointer-events: none;

View File

@ -3757,6 +3757,7 @@ Interface.definePanels(function() {
:class="{overlay_mode: uv_overlay && mode == 'paint'}" :class="{overlay_mode: uv_overlay && mode == 'paint'}"
:style="{width: inner_width + 'px', height: inner_height + 'px', margin: getFrameMargin(true)}" :style="{width: inner_width + 'px', height: inner_height + 'px', margin: getFrameMargin(true)}"
> >
<div id="uv_frame_spacer" :style="{left: (inner_width+getFrameMargin()[0])+'px', top: (inner_height+getFrameMargin()[1])+'px'}"></div>
<template v-for="element in getDisplayedUVElements()"> <template v-for="element in getDisplayedUVElements()">