Skip to content

Commit

Permalink
the native range we set is more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Nov 13, 2013
1 parent d3b5729 commit 1cf63fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selection.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class ScribeSelection
nativeRange[fn].call(nativeRange, node, offset)
)
@nativeSelection.addRange(nativeRange, range.isBackwards)
@range = this.getNativeRange(false)
@range = nativeRange
else
@range = null
@editor.emit(@editor.constructor.events.SELECTION_CHANGE, range) unless silent
Expand Down

0 comments on commit 1cf63fe

Please sign in to comment.