viewport fix: dictionary was being treated as a scalar

This fixes a problem where "flip" adjustment could make the position even worse.

viewportScroll was changed from scalar to dictionary by ffd8e58a5323af0deccb0a9d8ed763b8f7353516.  Actually, maybe it doesn't even need to be a dictionary since only the side1 key is used.