1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-26 01:50:28 +00:00
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
..
animations Restored animations for the reveal widget 2013-11-01 17:23:08 +00:00
animator.js Fix animation behaviour of reveal widget 2013-11-02 09:21:11 +00:00
browser.js Limited implementation of external text tiddlers in the browser 2015-08-29 16:33:04 +01:00
csscolorparser.js Provisionally make tag pill foreground colour be responsive 2014-11-06 13:35:48 +00:00
csscolorparser.js.meta Provisionally make tag pill foreground colour be responsive 2014-11-06 13:35:48 +00:00
dom.js PageScroller: scroll in new windows (#3537) 2018-11-13 18:07:55 +00:00
dragndrop.js Add more logging for drop operations 2018-09-13 20:42:35 +01:00
http.js Update code comment for $tw.utils.http 2018-08-23 13:13:49 +01:00
keyboard.js Introduce text editor toolbar (#2315) 2016-04-22 08:36:29 +01:00
modal.js Refinements to 87fa7f972c 2016-10-18 16:39:18 +01:00
notifier.js Refinements to 87fa7f972c 2016-10-18 16:39:18 +01:00
popup.js Popup manager enhancements 2018-08-09 19:39:58 +01:00
scroller.js [pagescroller] add callback function option (#3473) 2018-11-15 14:58:32 +00:00