Debug event dispatches.

This commit is contained in:
David Wendt 2021-02-04 19:54:40 -05:00 committed by Mike Welsh
parent a2d56016cb
commit 69e8a33a8e
1 changed files with 6 additions and 0 deletions

View File

@ -375,6 +375,12 @@ pub fn dispatch_event_to_target<'gc>(
mut target: Object<'gc>,
event: Object<'gc>,
) -> Result<(), Error> {
avm_debug!(
activation.context.avm2,
"Event dispatch: {} to {:?}",
event.as_event().unwrap().event_type(),
target
);
let dispatch_list = target
.get_property(
target,