Scroll every single tile left/right

This commit is contained in:
Antonio Scandurra
2015-05-14 11:36:20 +02:00
parent c39b1d2159
commit 6be88fd645
4 changed files with 11 additions and 13 deletions

View File

@@ -48,10 +48,6 @@ class LinesComponent
@domNode.style.height = @newState.scrollHeight + 'px'
@oldState.scrollHeight = @newState.scrollHeight
if @newState.scrollLeft isnt @oldState.scrollLeft
@domNode.style['-webkit-transform'] = "translate3d(#{-@newState.scrollLeft}px, 0, 0px)"
@oldState.scrollLeft = @newState.scrollLeft
if @newState.backgroundColor isnt @oldState.backgroundColor
@domNode.style.backgroundColor = @newState.backgroundColor
@oldState.backgroundColor = @newState.backgroundColor