Skip to content

Commit

Permalink
Merge pull request #14787 from denny99/14785
Browse files Browse the repository at this point in the history
fix: #14785 rounded scrollLeft for scaled displays
  • Loading branch information
cetincakiroglu committed Feb 23, 2024
2 parents e5518fd + bc2384f commit dd3ca7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/tabview/tabview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ export class TabView implements AfterContentInit, AfterViewChecked, OnDestroy, B
const width = DomHandler.getWidth(content);

this.backwardIsDisabled = scrollLeft === 0;
this.forwardIsDisabled = scrollLeft === scrollWidth - width;
this.forwardIsDisabled = Math.round(scrollLeft) === scrollWidth - width;
}

refreshButtonState() {
Expand Down

0 comments on commit dd3ca7b

Please sign in to comment.