mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Fixed pasting selection with cusor out of canvas
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user