Fix eslint
This commit is contained in:
@@ -480,8 +480,7 @@ export function dragElement($elmnt) {
|
|||||||
|
|
||||||
let pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
|
let pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
|
||||||
let height, width, top, left, right, bottom,
|
let height, width, top, left, right, bottom,
|
||||||
maxX, maxY, winHeight, winWidth,
|
maxX, maxY, winHeight, winWidth;
|
||||||
topbar;
|
|
||||||
|
|
||||||
const elmntName = $elmnt.attr('id');
|
const elmntName = $elmnt.attr('id');
|
||||||
const elmntNameEscaped = $.escapeSelector(elmntName);
|
const elmntNameEscaped = $.escapeSelector(elmntName);
|
||||||
@@ -540,11 +539,6 @@ export function dragElement($elmnt) {
|
|||||||
winWidth = window.innerWidth;
|
winWidth = window.innerWidth;
|
||||||
winHeight = window.innerHeight;
|
winHeight = window.innerHeight;
|
||||||
|
|
||||||
topbar = document.getElementById('top-bar');
|
|
||||||
const topbarstyle = getComputedStyle(topbar);
|
|
||||||
topBarFirstX = parseInt(topbarstyle.marginInline);
|
|
||||||
topBarLastY = parseInt(topbarstyle.height);
|
|
||||||
|
|
||||||
// Prepare state object if missing
|
// Prepare state object if missing
|
||||||
if (!power_user.movingUIState[elmntName]) power_user.movingUIState[elmntName] = {};
|
if (!power_user.movingUIState[elmntName]) power_user.movingUIState[elmntName] = {};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user