Skip to content

Commit 44406a6

Browse files
authored
fix: Merge pull request #101 from microvnhaxor/master
Remove Box If Create Box Small.
2 parents 00762bf + e8f930f commit 44406a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Annotator/reducers/general-reducer.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,8 @@ export default (state: MainLayoutState, action: Action) => {
525525
type: "box",
526526
x: x,
527527
y: y,
528-
w: 0.01,
529-
h: 0.01,
528+
w: 0,
529+
h: 0,
530530
highlighted: true,
531531
editingLabels: false,
532532
color: defaultRegionColor,
@@ -632,7 +632,7 @@ export default (state: MainLayoutState, action: Action) => {
632632
case "RESIZE_BOX": {
633633
if (state.mode.isNew) {
634634
if (
635-
Math.abs(state.mode.original.x - x) < 0.002 &&
635+
Math.abs(state.mode.original.x - x) < 0.002 ||
636636
Math.abs(state.mode.original.y - y) < 0.002
637637
) {
638638
return setIn(

0 commit comments

Comments
 (0)