Don't crash when user hovers over nothing
This commit is contained in:
parent
6a2dc36140
commit
c409bc1a1e
10
event.go
10
event.go
@ -339,11 +339,13 @@ func (window *window) handleMotionNotify (
|
||||
}
|
||||
|
||||
underneath := window.boxUnder(image.Pt(x, y), eventCategoryMouse)
|
||||
window.hover(underneath)
|
||||
|
||||
if !handled {
|
||||
underneath.handleMouseMove()
|
||||
if underneath != nil {
|
||||
window.hover(underneath)
|
||||
if !handled {
|
||||
underneath.handleMouseMove()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func (window *window) compressExpose (
|
||||
|
Reference in New Issue
Block a user