Reintroducing the dispatchEvent for drawEngine