Added support for events involving sprites