Use clientXY to calculate dy/dx instead of pageXY