mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-27 06:38:19 +00:00
Scrollable widget: Fix error in variable declaration (#4704)
This commit is contained in:
parent
17a36726fa
commit
bbf20f8955
@ -66,10 +66,10 @@ ScrollableWidget.prototype.handleScrollEvent = function(event) {
|
|||||||
Scroll an element into view
|
Scroll an element into view
|
||||||
*/
|
*/
|
||||||
ScrollableWidget.prototype.scrollIntoView = function(element) {
|
ScrollableWidget.prototype.scrollIntoView = function(element) {
|
||||||
var duration = $tw.utils.getAnimationDuration();
|
var duration = $tw.utils.getAnimationDuration(),
|
||||||
|
srcWindow = element ? element.ownerDocument.defaultView : window;
|
||||||
this.cancelScroll();
|
this.cancelScroll();
|
||||||
this.startTime = Date.now(),
|
this.startTime = Date.now(),
|
||||||
srcWindow = element ? element.ownerDocument.defaultView : window;
|
|
||||||
var scrollPosition = {
|
var scrollPosition = {
|
||||||
x: this.outerDomNode.scrollLeft,
|
x: this.outerDomNode.scrollLeft,
|
||||||
y: this.outerDomNode.scrollTop
|
y: this.outerDomNode.scrollTop
|
||||||
|
Loading…
Reference in New Issue
Block a user