mirror of
https://github.com/atom/atom.git
synced 2026-02-15 00:55:14 -05:00
Merge pull request #8 from github/scroll-perf
Scroll performance tweaks
This commit is contained in:
@@ -12,6 +12,7 @@ class Cursor extends View
|
||||
anchor: null
|
||||
editor: null
|
||||
wordRegex: /(\w+)|([^\w\s]+)/g
|
||||
hidden: false
|
||||
|
||||
initialize: ({editor, screenPosition} = {}) ->
|
||||
@editor = editor
|
||||
@@ -178,8 +179,10 @@ class Cursor extends View
|
||||
@editor.scrollTo(pixelPosition)
|
||||
|
||||
if @editor.isFoldedAtScreenRow(screenPosition.row)
|
||||
@hide()
|
||||
@hide() unless @hidden
|
||||
@hidden = true
|
||||
else
|
||||
@show()
|
||||
@show() if @hidden
|
||||
@hidden = false
|
||||
|
||||
@selection.updateAppearance()
|
||||
|
||||
@@ -47,7 +47,6 @@ body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
-webkit-box-shadow: inset 0px 0px 2px 2px rgba(0, 0, 0, .1);
|
||||
}
|
||||
|
||||
#root-view #panes .row > * + * {
|
||||
|
||||
Reference in New Issue
Block a user