fix select area tool

This commit is contained in:
raphael 2020-06-02 17:47:28 +02:00
parent a78bb8a0d7
commit bbb55eb2b8
1 changed files with 3 additions and 3 deletions

View File

@ -348,13 +348,13 @@ const whiteboard = {
const top = _this.startCoords.y < currentPos.y ? _this.startCoords.y : currentPos.y;
_this.mouseOverlay.css({ cursor: "default" });
const imgDiv = $(
```<div class="dragMe" style="position:absolute; left: ${left}px; top: ${top}px; width: ${width}px; border: 2px dotted gray; overflow: hidden; height: ${height}px;" cursor:move;">
<canvas style="cursor:move; position:absolute; top:0px; left:0px;" width="${width}" height="${height}"/>
`<div class="dragMe" style="position:absolute; left: ${left}px; top: ${top}px; width: ${width}px; border: 2px dotted gray; overflow: hidden; height: ${height}px;" cursor:move;">
<canvas style="cursor:move; position:absolute; top:0px; left:0px;" width="${width}" height="${height}"></canvas>
<div style="position:absolute; right:5px; top:3px;">
<button draw="1" style="margin: 0px 0px; background: #03a9f4; padding: 5px; margin-top: 3px; color: white;" class="addToCanvasBtn btn btn-default">Drop</button>
<button style="margin: 0px 0px; background: #03a9f4; padding: 5px; margin-top: 3px; color: white;" class="xCanvasBtn btn btn-default">x</button>
</div>
</div>```
</div>`
);
const dragCanvas = $(imgDiv).find("canvas");
const dragOutOverlay = $(