Fix weird behavior in playhead_x_to_grid: use return value from snap_to_grid.