Skip to content

Commit

Permalink
test toggling frame while selecting new one
Browse files Browse the repository at this point in the history
  • Loading branch information
cccraig committed Aug 28, 2021
1 parent 45fd1fd commit 4275f6a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion js/admin_mug.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,15 @@ function beginCapture(e) {
'height': 5,
'width': 5,
};

MugShot.createBoundingBox(frame);
// MugShot.createBoundingBox(e.pageX - MugShot.offset.left, e.pageY - MugShot.offset.top, 5, 5);

// // Hide all the frames while we select the new one. Keeps them from interfering.
// MugShot.mugs.forEach(mug => {
// mug.frame.el.style = 'hidden';
// mug.name.el.style = 'hidden';
// });

MugShot.mugs[MugShot.cfi].frame.el.classList.toggle('mugshot-active');
MugShot.toggleSubmitBtn('on');
}
Expand Down

0 comments on commit 4275f6a

Please sign in to comment.