Draggable VN sprites. Fix layering

This commit is contained in:
Cohee
2023-06-04 16:32:45 +03:00
parent a273fcb593
commit 3cfec828ef
5 changed files with 24 additions and 7 deletions

View File

@ -450,7 +450,7 @@ dragElement(document.getElementById("WorldInfo"));
function dragElement(elmnt) {
export function dragElement(elmnt) {
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
if (document.getElementById(elmnt.id + "header")) { //ex: id="sheldheader"
@ -504,7 +504,7 @@ function dragElement(elmnt) {
pos3 = e.clientX; //new mouse X
pos4 = e.clientY; //new mouse Y
elmnt.setAttribute('data-dragged', 'true');
//fix over/underflows: