r100444 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100443‎ | r100444 | r100445 >
Date:20:08, 21 October 2011
Author:inez
Status:deferred
Tags:
Comment:
Way better working support for moving cursor up and down with arrow keys
Modified paths:
  • /trunk/parsers/wikidom/lib/synth/views/es.SurfaceView.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/synth/views/es.SurfaceView.js
@@ -291,11 +291,7 @@
292292 i = 1;
293293
294294 do {
295 - if ( direction == 'up' ) {
296 - fakePosition.top -= i++ * 10;
297 - } else {
298 - fakePosition.top += i++ * 10;
299 - }
 295+ ( direction == 'up' ) ? fakePosition.top -= i++ * 10 : fakePosition.top += i++ * 10;
300296 offset = this.documentView.getOffsetFromPosition( fakePosition );
301297 fakePosition = this.documentView.getRenderedPosition( offset );
302298 fakePosition.left = this.cursor.initialLeft;

Status & tagging log