Fixed directional scroll calculation algorithm