progress updating canvas width at runtime
This commit is contained in:
@@ -860,13 +860,14 @@ struct
|
||||
} = app
|
||||
|
||||
val squares = changeSquaresSize (squares, newCanvasWidth, canvasHeight)
|
||||
val arrowX = Int.min (arrowX, newCanvasWidth)
|
||||
in
|
||||
{ mode = mode
|
||||
, canvasWidth = newCanvasWidth
|
||||
, arrowX = arrowX
|
||||
, mouseX = mouseX
|
||||
, mouseY = mouseY
|
||||
, squares = squares
|
||||
, arrowX = arrowX
|
||||
, arrowY = arrowY
|
||||
, canvasHeight = canvasHeight
|
||||
, windowWidth = windowWidth
|
||||
|
||||
Reference in New Issue
Block a user