mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-02 15:23:31 -08:00
this allows using the pagescroller for scrolling elements into view where the rect gets calculated somewhere else
Example: CodeMirror has the `cm.cursorCoords()` function that returns the rect of the textselection (or cursor coordinates)
this scrolls the cursor or text selection into view using tiddlywikis pagescroller:
`$tw.pageScroller.scrollIntoView(undefined, function() { return self.cm.cursorCoords(true,"window"); });`
|
||
|---|---|---|
| .. | ||
| diff-match-patch | ||
| dom | ||
| crypto.js | ||
| csv.js | ||
| edition-info.js | ||
| fakedom.js | ||
| filesystem.js | ||
| logger.js | ||
| parsetree.js | ||
| performance.js | ||
| pluginmaker.js | ||
| transliterate.js | ||
| utils.js | ||