avoid NaN and use same logic as wheelDelta