In the top right of the editor view there are snapping options. Currently the 6th button from the left is orange, this button is grid snapping. Click this button to turn it grey to disable grid snapping.
To the right of that button is the number of grid spaces it will snap over, you can adjust this for fine grid snapping if required. There are also settings along that bar that work similarly but for angle snapping.