When adjusting Editor.scrollView, use scrollTop instead of translate3d

This commit is contained in:
Corey Johnson 2012-05-31 18:25:50 -07:00
parent 3c826ec898
commit 13aab2ed8c

View File

@ -278,9 +278,8 @@ class Editor extends View
@updateVisibleLines() if @attached
transform = "translate3d(0px, #{-scrollTop}px, 0px)"
@visibleLines.css('-webkit-transform', transform)
@gutter.lineNumbers.css('-webkit-transform', transform)
@scrollView.scrollTop(scrollTop)
@gutter.scrollTop(scrollTop)
if options?.adjustVerticalScrollbar ? true
@verticalScrollbar.scrollTop(scrollTop)