Hi @RobertScheitlin and everyone,
Upgrading 3.x to 4.x framework:
I am using mapView.hitTest() event to capture the feature layer and feature information and showing the popup window. As you can see in the screenshot mouse is not on the feature and still it is showing info window. Kindly suggest some resolution in 4.x framework similar to tolerance property in IdentifyTask.