Behaviour SwRS-MDOKFSTUDIO-LIFE-188
The side preview's scroll on a jump follows the anchor setting
When the side preview marks the line of a jump, it SHALL ask the page to scroll only when the line is off screen and leave the scroll anchor to the editor while scrolling the preview with the editor is on, and SHALL ask the page to scroll the line to the reading line and take it as its anchor while that setting is off.
Part of StRS-MDOKFSTUDIO-LIFE-023, outside the paths drawn on its map.
Scenarios 2
The situations the tests check; open one to read it.
nominalScroll sync on, the line is on screen
Giventhe side preview with scroll with editor on, and line 40 already on screen below the sticky headings
Whena jump to line 40 arrives
Thenthe marker is drawn on line 40, the page does not move and the jump takes no anchor
boundaryScroll modes
| Input | Outcome |
|---|---|
| scroll sync on, the line is off screen | the page scrolls the line to the reading line, takes no anchor |
| scroll sync off | the page scrolls the line to the reading line and the line becomes the anchor |
| the reveal carries no scroll field | it is read as reading-line |
| a scroll field other than reading-line or if-off-screen | the router refuses the message |
| a closed dropdown or a folded section holds the line | it opens, in both modes |