Use clientX instead of x, via @porjo