Floor panels are shown, which are provided with a vertical folding locking system on short edges that only locks vertically and a mechanical locking system on long edges that prevents displacement along the long edges.