Mouse test does not draw lines if mouse is not held down
This commit is contained in:
parent
d75ec12a3c
commit
e740f5385c
@ -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,
|
||||
|
Reference in New Issue
Block a user