fix bug: when loading a parsed layer tree, graph lines should be regenerated
This commit is contained in:
@@ -1007,8 +1007,8 @@ struct
|
||||
{ mode
|
||||
, mouseX
|
||||
, mouseY
|
||||
, xClickPoints
|
||||
, yClickPoints
|
||||
, xClickPoints = _
|
||||
, yClickPoints = _
|
||||
, windowWidth
|
||||
, windowHeight
|
||||
, arrowX
|
||||
@@ -1033,6 +1033,9 @@ struct
|
||||
if canvasWidth = 0 then 0 else Int.min (canvasWidth - 1, arrowX)
|
||||
val arrowY =
|
||||
if canvasHeight = 0 then 0 else Int.min (canvasHeight - 1, arrowY)
|
||||
val (xClickPoints, yClickPoints) =
|
||||
ClickPoints.generate
|
||||
(windowWidth, windowHeight, canvasWidth, canvasHeight)
|
||||
in
|
||||
{ mode = mode
|
||||
, mouseX = mouseX
|
||||
|
||||
Reference in New Issue
Block a user