Main window: pages: when scrolling, update the page selected in the page list on-the-fly

Signed-off-by: Jerome Flesch <jflesch@gmail.com>