mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 23:48:05 +03:00
When adjusting Editor.scrollView, use scrollTop instead of translate3d
This commit is contained in:
parent
3c826ec898
commit
13aab2ed8c
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user