summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
104d344)
Cursor now lands in a text element chosen to be selected by
canvas algorithm.
if(currentTextElement && !(currentTextElement.sameNode(textElementToLand)))
this.wrapper.find('.current-text-element').removeClass('current-text-element');
if(currentTextElement && !(currentTextElement.sameNode(textElementToLand)))
this.wrapper.find('.current-text-element').removeClass('current-text-element');
- if(textElementToLand && !(textElementToLand.sameNode(currentTextElement))) {
+ if(textElementToLand) {
_markAsCurrent(textElementToLand);
_markAsCurrent(textElementToLand);
+ if(params.caretTo || !textElementToLand.sameNode(this.getCursor().getPosition().element))
this._moveCaretToTextElement(textElementToLand, params.caretTo); // as method on element?
this._moveCaretToTextElement(textElementToLand, params.caretTo); // as method on element?
- this.publisher('currentTextElementSet', element);
+ if(!(textElementToLand.sameNode(currentTextElement)))
+ this.publisher('currentTextElementSet', element);
}
if(!(currentNodeElement && currentNodeElement.sameNode(nodeElementToLand))) {
}
if(!(currentNodeElement && currentNodeElement.sameNode(nodeElementToLand))) {