MIDI Parts Snaping to locator positions

When recording midi, even just a short passage, a huge “part” is created with ends snapped to the left and right locator positions. How do I disable this? Thanks!