Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
fix: fixed a tiny bug which made it so you had to double click to rem…
Browse files Browse the repository at this point in the history
…ove connections
  • Loading branch information
prescientmoon committed May 6, 2020
1 parent 2879712 commit 9a79ea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Component/Editor/Edge.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Data.Typelevel.Num (d0, d1)
import Data.Vec ((!!))
import Halogen.HTML (ComponentHTML)
import Halogen.HTML as HH
import Halogen.HTML.Events (onClick)
import Halogen.HTML.Events (onMouseUp)
import Lunarbox.Data.Editor.Constants (connectionsWidth)
import Lunarbox.Data.Vector (Vec2)
import Lunarbox.Svg.Attributes (strokeDashArray, strokeWidth)
Expand Down Expand Up @@ -44,7 +44,7 @@ renderEdge' { from, to, color, dotted, className } { handleClick } =
, SA.x2 $ floor $ to !! d0
, SA.y2 $ floor $ to !! d1
, SA.stroke $ Just color
, onClick $ const handleClick
, onMouseUp $ const handleClick
, strokeWidth connectionsWidth
]
<> ( guard dotted
Expand Down

0 comments on commit 9a79ea6

Please sign in to comment.