#82 jquery convertion changes

This commit is contained in:
Agriya Dev5
2021-03-12 16:29:36 +05:30
parent b1a7cf34e8
commit fd503ab41a
5 changed files with 38 additions and 35 deletions

View File

@@ -67,8 +67,8 @@ class BottomPanelHandlers {
width: 0,
height: 0,
// center pt of scroll position
x: (wArea[0].scrollLeft + wArea.width() / 2) / zoom,
y: (wArea[0].scrollTop + wArea.height() / 2) / zoom,
x: (wArea.scrollLeft + parseFloat(getComputedStyle(wArea, null).width.replace("px", "")) / 2) / zoom,
y: (wArea.scrollTop + parseFloat(getComputedStyle(wArea, null).height.replace("px", "")) / 2) / zoom,
zoom: zoomlevel
}, true);
}

View File

@@ -43,7 +43,7 @@ class LeftPanelHandlers {
*/
clickSelect () {
if (this.updateLeftPanel('tool_select')) {
this.editor.workarea.css('cursor', 'auto');
this.editor.workarea.style.cursor = "auto";
this.svgCanvas.setMode('select');
}
}