Skip to content

Commit

Permalink
no need for dv under min msg
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Jul 5, 2024
1 parent 4db571e commit eb92788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion canvas/svg.go
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ func NewSVGElementDrag[T tree.NodeValue](sv *SVG, start, end image.Point) *T {
es := sv.EditState()
dv := math32.Vector2FromPoint(end.Sub(start))
if !es.InAction() && math32.Abs(dv.X) < minsz && math32.Abs(dv.Y) < minsz {
fmt.Println("dv under min:", dv, minsz)
// fmt.Println("dv under min:", dv, minsz)
return nil
}
sv.ManipStart(NewElement, types.For[T]().IDName)
Expand Down

0 comments on commit eb92788

Please sign in to comment.