mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Don’t autoscroll to selection when double- or triple-click dragging
This commit is contained in:
@@ -324,7 +324,8 @@ class Selection extends Model
|
||||
# Public: Expands the newest selection to include the entire word on which
|
||||
# the cursors rests.
|
||||
expandOverWord: ->
|
||||
@setBufferRange(@getBufferRange().union(@cursor.getCurrentWordBufferRange()))
|
||||
@setBufferRange(@getBufferRange().union(@cursor.getCurrentWordBufferRange()), autoscroll: false)
|
||||
@cursor.autoscroll()
|
||||
|
||||
# Public: Selects an entire line in the buffer.
|
||||
#
|
||||
@@ -342,7 +343,8 @@ class Selection extends Model
|
||||
# It also includes the newline character.
|
||||
expandOverLine: ->
|
||||
range = @getBufferRange().union(@cursor.getCurrentLineBufferRange(includeNewline: true))
|
||||
@setBufferRange(range)
|
||||
@setBufferRange(range, autoscroll: false)
|
||||
@cursor.autoscroll()
|
||||
|
||||
###
|
||||
Section: Modifying the selected text
|
||||
|
||||
Reference in New Issue
Block a user