The decision when to roam is solely a function of the client radio drivers and supplicant, based on SNR, interference and other factors.
Some client roaming behavior has been described as "sticky" or wanting to remain on the first AP it connected to a particular SSID.
In general, having two APs at a sufficient distance apart, both advertising the desired SSID, will attract the clients that are closest to the AP(s).