Skip to content
Snippets Groups Projects
Commit 82149852 authored by Yuriy Maksymets's avatar Yuriy Maksymets
Browse files

Firefox px fix

parent 7ca77cad
No related branches found
No related tags found
1 merge request!77Firefox dragging fix
Pipeline #109378 passed
......@@ -76,9 +76,13 @@ function setSelectedTool(newSelectedTool) {
toolElements[newSelectedTool].classList.add("selected")
}
function withPx(str) {
return `${str}px`
}
function updateCanvasOffset() {
HTML.canvas.style.left = canvasOffset[0]
HTML.canvas.style.top = canvasOffset[1]
HTML.canvas.style.left = withPx(canvasOffset[0])
HTML.canvas.style.top = withPx(canvasOffset[1])
}
function centerCanvas() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment