RF-13531: Replaced the mouseenter/leave event handlers with a top-level delegating event handler