Project

General

Profile

Feature #3306

Updated by Ram Kordale about 1 year ago

When user is about to exit, open the copilot if "isCopilotOpenOnExit" was present in the API response and the value was true. copilot. 

 How to decide if the user is about to exit. We can combine the following heuristics. If all of the following happens, we can assume that the user is about to exit 
 - Direction of the mouse movement is roughly towards the top of the window (between (0,2h/3) and (w, 2h/3)) where w is the width and h is the height of the window. 
 - Relatively fast movement [This needs some experimentation. We can use the same logic for both the points from the Angular implementation.] 

 Can we reuse the logic to find out if the user is exiting in Angular to build this feature? 

 There, the logic was based on direction and speed of mouse movement. [http://34.67.50.25/issues/2047 has some clue on where to find this in code.]

Back