Important bug fix: Find the x- and y- offsets just when recording a mouse click

Previously, we had fixed size layout with fixed width panels.
And hence, it was ok to calculate the offsets once and correct by them
when recording a click

But now, we have a fluid layout in which panel widths are a fixed * proportion * of
the visible area => the offsets change as the browser window is re-sized