mirror of
https://github.com/atom/atom.git
synced 2026-02-14 00:25:08 -05:00
Autoscroll the editor as a quadratic function of mouse cursor overshoot
This was a spike and still needs tests, but it’s going to be way better.
This commit is contained in:
@@ -1943,10 +1943,10 @@ class TextEditor extends Model
|
||||
# This method may merge selections that end up intesecting.
|
||||
#
|
||||
# * `position` An instance of {Point}, with a given `row` and `column`.
|
||||
selectToScreenPosition: (position, suppressMerge) ->
|
||||
selectToScreenPosition: (position, options) ->
|
||||
lastSelection = @getLastSelection()
|
||||
lastSelection.selectToScreenPosition(position)
|
||||
unless suppressMerge
|
||||
lastSelection.selectToScreenPosition(position, options)
|
||||
unless options?.suppressSelectionMerge
|
||||
@mergeIntersectingSelections(reversed: lastSelection.isReversed())
|
||||
|
||||
# Essential: Move the cursor of each selection one character upward while
|
||||
|
||||
Reference in New Issue
Block a user