r103609 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103608‎ | r103609 | r103610 >
Date:19:57, 18 November 2011
Author:inez
Status:deferred
Tags:
Comment:
Improve logic for moving cursor up and down - especially in case of initialBias.
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js
@@ -602,8 +602,8 @@
603603
604604 this.cursor.initialBias = (
605605 ( direction === 'right' && unit === 'line' ) ||
606 - ( direction === 'down' && unit === 'char' ) ||
607 - ( direction === 'up' && unit === 'char' ) ) ?
 606+ ( this.cursor.initialBias && direction === 'down' && unit === 'char' ) ||
 607+ ( this.cursor.initialBias && direction === 'up' && unit === 'char' ) ) ?
608608 true :
609609 false;
610610

Status & tagging log