musescore/MuseScore — pull request #1541 by MarcSabatella (2014-12-14 22:22:30+00:00)
Title: fix #41371: preserve score position when switching page/continuous view

When changing views, find first measure in old view, position canvas to that measure in new view. Also make Home key (pageTop) return to top left corner in Line view, so it always displays something reasonable. This is used during the view change as well to position view at top of page where it makes sense.