MIDI controller events moving with notes in MIDI editor

When I grab MIDI notes in the MIDI editor and move them the sustain controller events don’t move with the notes.

Is there a setting that i can change to get the sustain pedal events to move with the MIDI notes within the MIDI editor?