mirror of
https://github.com/atom/atom.git
synced 2026-02-12 07:35:14 -05:00
Make LinesComponent a normal object instead of a React component
Also, remove ability to disable hardware acceleration since there’s no longer a need for it and it complicated this conversion.
This commit is contained in:
@@ -30,13 +30,8 @@ GutterComponent = React.createClass
|
||||
backgroundColor: backgroundColor
|
||||
|
||||
getTransform: ->
|
||||
{useHardwareAcceleration} = @props
|
||||
{scrollTop} = @newState
|
||||
|
||||
if useHardwareAcceleration
|
||||
"translate3d(0px, #{-scrollTop}px, 0px)"
|
||||
else
|
||||
"translate(0px, #{-scrollTop}px)"
|
||||
"translate3d(0px, #{-scrollTop}px, 0px)"
|
||||
|
||||
componentWillMount: ->
|
||||
@lineNumberNodesById = {}
|
||||
|
||||
Reference in New Issue
Block a user