Mouse test does not draw lines if mouse is not held down

This commit is contained in:
Sasha Koshka 2023-01-14 14:00:57 -05:00
parent d75ec12a3c
commit e740f5385c

View File

@ -69,6 +69,7 @@ func (element *Mouse) Handle (event tomo.Event) {
element.lastMousePos = mousePos
case tomo.EventMouseMove:
if !element.drawing { return }
mouseMoveEvent := event.(tomo.EventMouseMove)
mousePos := image.Pt (
mouseMoveEvent.X,