Currently, I am in the process of writing jQuery code that will detect if the mouse is positioned near the bottom or right side of a window, and then adjust the tooltip's position accordingly. This becomes crucial because the table in which these tooltips are displayed is larger than the visible viewport.
An approach like the following snippet would only be effective if all screens were identical in size:
$( document ).on( "mousemove", function( event ) {
$( "#log" ).text( "pageX: " + event.pageX + ", pageY: " + event.pageY );
});
Is there a way for me to calculate the coordinates with the bottom right as the origin, represented by '0x0'?