The logic in Gecko selects preview area that is *closest to the desired area*;
meanwhile this pull request for camera app tries to pick preview that can *cover the screen* no matter how large portion of the preview overflows the screen.

I think both makes sense but we can decide which one to use.