provide a useful default impl of isMouseOver

develop
Myk Taylor 2023-01-05 21:50:43 -08:00
parent 18e17e4e36
commit 574be3fe73
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 3 additions and 3 deletions

@ -737,10 +737,10 @@ function ZScreen:raise()
dscreen.raise(self)
end
-- subclasses should override this and return whether the mouse is over an
-- owned screen element
-- subclasses should either annotate their viewable panel with view_id='main'
-- or override this and return whether the mouse is over an owned screen element
function ZScreen:isMouseOver()
return false
return self.subviews.main and self.subviews.main:getMouseFramePos() or false
end
--------------------------