Index: trunk/parsers/wikidom/lib/jquery.editSurface.js |
— | — | @@ -63,13 +63,13 @@ |
64 | 64 | } |
65 | 65 | } ) |
66 | 66 | .mousemove( function( e ) { |
67 | | - var $target = $( e.target ); |
68 | | - if ( !$target.is( '.editSurface-line' ) ) { |
69 | | - $target = sel.start.$target.parent().children().closestToOffset( |
70 | | - { 'left': e.pageX, 'top': e.pageY } |
71 | | - ); |
72 | | - } |
73 | 67 | if ( sel.active ) { |
| 68 | + var $target = $( e.target ); |
| 69 | + if ( !$target.is( '.editSurface-line' ) ) { |
| 70 | + $target = sel.start.$target.parent().children().closestToOffset( |
| 71 | + { 'left': e.pageX, 'top': e.pageY } |
| 72 | + ); |
| 73 | + } |
74 | 74 | sel.end = getCursorPosition( e.pageX, e.pageY, $target ); |
75 | 75 | if ( sel.start.line < sel.end.line |
76 | 76 | || ( sel.start.line === sel.end.line |