when context menu is at 0px left position, the context menu uses the pageX event attribute. verification changed, using the correct check for undefined value.