1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-03-24 20:36:56 +00:00

Less confusing method name

This commit is contained in:
Jeremy Ruston 2013-02-08 09:22:21 +00:00
parent 5fd73a2b8d
commit 6584939114

View File

@ -31,7 +31,7 @@ Handle an event
*/
PageScroller.prototype.handleEvent = function(event) {
if(event.type === "tw-scroll") {
return this.handleScrollEvent(event);
return this.scrollIntoView(event);
}
return true;
};
@ -39,7 +39,7 @@ PageScroller.prototype.handleEvent = function(event) {
/*
Handle a scroll event hitting the page document
*/
PageScroller.prototype.handleScrollEvent = function(event) {
PageScroller.prototype.scrollIntoView = function(event) {
// Get the offset bounds of the element
var domNode = event.target,
bounds = {