kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Less confusing method name
rodzic
5fd73a2b8d
commit
6584939114
|
@ -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 = {
|
||||
|
|
Ładowanie…
Reference in New Issue