If I am understanding your requirements correctly, You would need to check when the mouse also leaves the element as well, and then use and operator like scan to sum the total. A relatively simple way to do this would be get a timestamp of the mouseover and then sample on the mouseout event: