The actual cursor seems to be offset by 16 blocks in all directions, so half a chunk. The depth one is just harder to see unless you do a precision check. {F22779}
Blueprint of an example ship {F22781} and a target {F22782}
Happens for cannons, beams and missiles (assuming you use a lock on combo for missiles or they won't fire).