Skip to content

Commit

Permalink
Merge pull request #1323 from rcatalano/master
Browse files Browse the repository at this point in the history
Fixes SC.ScrollView#scrollLeftLine and scrollRightLine
  • Loading branch information
mauritslamers committed Mar 11, 2019
2 parents 74fa5a6 + 1fec128 commit e80bc9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frameworks/desktop/views/scroll_view.js
Expand Up @@ -1882,7 +1882,7 @@ SC.ScrollView = SC.View.extend({
*/
scrollLeftLine: function (lines) {
if (lines === undefined) lines = 1;
return this.scrollTo(0 - this.get('horizontalLineScroll') * lines, null);
return this.scrollBy(0 - this.get('horizontalLineScroll') * lines, null);
},

/**
Expand All @@ -1908,7 +1908,7 @@ SC.ScrollView = SC.View.extend({
*/
scrollRightLine: function (lines) {
if (lines === undefined) lines = 1;
return this.scrollTo(this.get('horizontalLineScroll') * lines, null);
return this.scrollBy(this.get('horizontalLineScroll') * lines, null);
},

/**
Expand Down

0 comments on commit e80bc9b

Please sign in to comment.