Fix mouse region crash when using closures (#37342)
This PR fixes an issue where MouseRegion crashes when being passed with closures instead of methods. It changes how a RenderMouseRegion handles its MouseTrackingAnnotation. Instead of creating a new annotation every time it becomes active and destroys it when deactivated, it now creates an annotation during the constructor and holds onto it until the end of its lifecycle. Instead of directly passing the argument callbacks to the annotation, it proxies them using methods.
Showing
Please register or sign in to comment