Hi,
it sounds as if you have engaged the grid-button that locks your events to the nearest point of your selected grid. You find that button on the top of your project window or simply use the shortcut “J” to activate/deactivate the grid. If you come from Cubase 9.5 there´s a bunch of really cool new stuff in Cubase 13 around the corner!
@trudeausamuel You probably mean an Part, not a Track. Tracks can only be moved vertically in Cubase. Parts can be moved horizontally within a track or vertically across tracks.