Files
TiddlyWiki5/core/modules/utils/dom
BurningTreeC 0ff96f9caf [pagescroller] add callback function option (#3473)
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"); });`
2018-11-15 14:58:32 +00:00
..
2018-08-23 13:13:49 +01:00
2016-10-18 16:39:18 +01:00
2016-10-18 16:39:18 +01:00
2018-08-09 19:39:58 +01:00