Skip to content

Commit

Permalink
Fix object selection by saving on object modification (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradeepsen99 authored Mar 24, 2024
1 parent 6fc7291 commit f1ce3f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui_elements/Components/fabric_canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ export default function FabricRender(props){
opt.e.stopPropagation();
});

temp_fabricCanvas.on('object:moving', function (event) {
temp_fabricCanvas.on('object:modified', function (event) {
this.objDrag = true;
updateFrameData(currframe_redux, temp_fabricCanvas.getObjects())
});

temp_fabricCanvas.on('mouse:down', function(opt) {
Expand All @@ -125,7 +126,6 @@ export default function FabricRender(props){
}
});
temp_fabricCanvas.on('mouse:up', function(opt) {
updateFrameData(currframe_redux, temp_fabricCanvas.getObjects())
if(this.objDrag){
this.objDrag = false;
}
Expand Down

0 comments on commit f1ce3f2

Please sign in to comment.