Change from x to clientX.