You can drag the compass.
The magnetic field is the area surrounding a magnet in which the magnetic force exists.
The magnetic field is also formed around the conductor through which the current flows. This is electromagnetism.
The direction of the magnetic field can be determined as follows.
If the right-hand thumb pointing the current flow direction, another 4 fingers point the magnetic field direction around the conductor.