Selected note is painted at the end, so it's always on the top layer when moving.