Fixed pasting selection with cusor out of canvas

This commit is contained in:
Nicola
2022-01-12 23:13:53 +01:00
parent eada0f7ab1
commit 37d21f5dec
3 changed files with 4 additions and 15 deletions

View File

@@ -1,10 +1,3 @@
/** TODO
* - Once the selected pixels have been obtained, save the selection outline in an image data
* - The move tool will then move those image datas and they'll be pasted on the right layer
* at the end of the selection
*
*/
class SelectionTool extends Tool {
switchFunc = undefined;
moveTool = undefined;
@@ -144,10 +137,6 @@ class SelectionTool extends Tool {
currFile.VFXLayer.canvas.style.zIndex = MIN_Z_INDEX;
}
copySelection() {
}
cursorInSelectedArea(mousePos) {
let floored = [Math.floor(mousePos[0] / currFile.zoom) - this.moveOffset[0],