Prevent ticks from disappearing at screen edges