Namespace: scrollSync

Marked. scrollSync

Scroll synchronization between source view and preview

Source:
scroll-sync.js

Methods


<static> cleanup()

Remove listeners and clear timer state.

Source:
scroll-sync.js

<static> findElementAtCenter()

Return the nearest readable block element near viewport center.

Source:
scroll-sync.js
Returns:

Element descriptor or null.

Type
Object | null

<static> init()

Initialize preview scroll listeners and Cocoa bridge notifications.

Source:
scroll-sync.js

<static> scrollToElement(searchText)

Scroll preview to an element matching supplied search text.

Parameters:
Name Type Description
searchText string

Text snippet to locate in document.

Source:
scroll-sync.js
Returns:

True when a matching element was found.

Type
boolean