mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-02 23:33:47 -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"); });`
|
||
|---|---|---|
| .. | ||
| animations | ||
| animator.js | ||
| browser.js | ||
| csscolorparser.js | ||
| csscolorparser.js.meta | ||
| dom.js | ||
| dragndrop.js | ||
| http.js | ||
| keyboard.js | ||
| modal.js | ||
| notifier.js | ||
| popup.js | ||
| scroller.js | ||