avm2: Enforce the `mouseEnabled` flag.

This commit is contained in:
David Wendt 2021-10-08 21:56:56 -04:00 committed by kmeisthax
parent b2e0586252
commit 2ea35dcbb1
1 changed files with 4 additions and 0 deletions

View File

@ -143,6 +143,10 @@ pub trait TInteractiveObject<'gc>:
context: &mut UpdateContext<'_, 'gc, '_>,
event: ClipEvent,
) -> ClipEventResult {
if !self.mouse_enabled() {
return ClipEventResult::NotHandled;
}
if self.filter_clip_event(event) == ClipEventResult::NotHandled {
return ClipEventResult::NotHandled;
}