r100675 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100674‎ | r100675 | r100676 >
Date:04:58, 25 October 2011
Author:inez
Status:deferred
Tags:
Comment:
Improvements for autoscrolling functionality
Modified paths:
  • /trunk/parsers/wikidom/lib/synth/views/es.DocumentView.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/synth/views/es.DocumentView.js
@@ -74,9 +74,8 @@
7575 //console.log(position.top);
7676
7777 if (position.top - $(window).scrollTop() > window.innerHeight) {
78 - console.log("b " + position.top);
79 - position.top = window.innerHeight + $(window).scrollTop() + 10;
80 - console.log("j " + position.top);
 78+ position.top = window.innerHeight + $(window).scrollTop();
 79+ position.left = window.innerWidth;
8180 }
8281
8382
@@ -97,10 +96,8 @@
9897 }
9998
10099 if (position.top - $(window).scrollTop() > window.innerHeight) {
101 - console.log("b " + position.top);
102 - position.top = window.innerHeight + $(window).scrollTop() + 10;
 100+ position.top = window.innerHeight + $(window).scrollTop();
103101 position.left = window.innerWidth;
104 - console.log("j " + position.top);
105102 }
106103
107104

Status & tagging log