Make sure to initialize ruler coordinates to zero.