Viewport fix now also locally

Tried to determine correct x and y when click