Skip to content

Commit

Permalink
Implement fix for bfwg#250
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas1664 committed Aug 7, 2020
1 parent 1c31560 commit 6c767b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/ngx-drag-scroll/src/lib/ngx-drag-scroll.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,13 @@ export class DragScrollComponent implements OnDestroy, AfterViewInit, OnChanges,
ngOnChanges() {
this.setScrollBar();

if (this.xDisabled || this.disabled) {
if (this.xDisabled || this.disabled || this._scrollbarHidden) {
this.disableScroll('x');
} else {
this.enableScroll('x');
}

if (this.yDisabled || this.disabled) {
if (this.yDisabled || this.disabled || this._scrollbarHidden) {
this.disableScroll('y');
} else {
this.enableScroll('y');
Expand Down

0 comments on commit 6c767b4

Please sign in to comment.