Mob Leeway and PvP leeway are 2 diff things. Mob leeway depends on the players ping to the server only, whereas PvP Leeway depends on player to server to players latency.
Here is an idea how PvP leeway worked in vanilla. The numbers could be off but the idea remains the same.