Markdown OKF-Schema Studio

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
InputOutcome
scroll sync on, the line is off screenthe page scrolls the line to the reading line, takes no anchor
scroll sync offthe page scrolls the line to the reading line and the line becomes the anchor
the reveal carries no scroll fieldit is read as reading-line
a scroll field other than reading-line or if-off-screenthe router refuses the message
a closed dropdown or a folded section holds the lineit opens, in both modes

Implemented in 3

Tested by 4