raw-buffer-api #1
@ -69,6 +69,7 @@ func (element *Mouse) Handle (event tomo.Event) {
|
|||||||
element.lastMousePos = mousePos
|
element.lastMousePos = mousePos
|
||||||
|
|
||||||
case tomo.EventMouseMove:
|
case tomo.EventMouseMove:
|
||||||
|
if !element.drawing { return }
|
||||||
mouseMoveEvent := event.(tomo.EventMouseMove)
|
mouseMoveEvent := event.(tomo.EventMouseMove)
|
||||||
mousePos := image.Pt (
|
mousePos := image.Pt (
|
||||||
mouseMoveEvent.X,
|
mouseMoveEvent.X,
|
||||||
|
Reference in New Issue
Block a user