Seems like fix didn't work

performance optimization for firefox seems to have broken chrome after
today's changes. Seems like we will have to accept the slower method of
calculating coordinates. At least it is more flexible.

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
Victor Seiji Hariki 2022-12-08 19:42:14 -03:00
parent 047d5ef01f
commit f8687e9bac
4 changed files with 2 additions and 9 deletions

View file

@ -123,7 +123,7 @@ body {
width: 25px;
height: 25px;
-webkit-mask-image: url("/res/icon/x.svg");
-webkit-mask-image: url("/res/icons/x.svg");
mask-image: url("/res/icons/x.svg");
background-color: var(--c-text);

View file

@ -668,7 +668,6 @@ async function getModels() {
console.warn("[index] Failed to fetch models:");
console.warn(e);
}
// get currently loaded model
modelAutoComplete.onchange.on(async ({value}) => {
console.log(`[index] Changing model to [${value}]`);

View file

@ -69,12 +69,6 @@ mouse.registerContext(
ctx.coords.prev.x = ctx.coords.pos.x;
ctx.coords.prev.y = ctx.coords.pos.y;
if (evn.layerX !== evn.clientX || evn.layerY !== evn.clientY) {
ctx.coords.pos.x = Math.round(evn.layerX + imageCollection.inputOffset.x);
ctx.coords.pos.y = Math.round(evn.layerY + imageCollection.inputOffset.y);
return;
}
// Get element bounding rect
const bb = imageCollection.element.getBoundingClientRect();

View file

@ -29,7 +29,7 @@ const layers = {
},
// Input multiplier (Size of the input element div)
inputSizeMultiplier: 999,
inputSizeMultiplier: 3,
// Target
targetElement: document.getElementById("layer-render"),