Skip to content

Commit f56e089

Browse files
lint.fix
1 parent 8053d64 commit f56e089

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/components/segment-view/segment-view.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class SegmentView implements ComponentInterface {
4040
@Listen('scroll')
4141
handleScroll(ev: Event) {
4242
const { scrollLeft, scrollWidth, clientWidth } = ev.target as HTMLElement;
43-
const max = scrollWidth - clientWidth;
43+
const max = scrollWidth - clientWidth;
4444
const scrollRatio = (isRTL(this.el) ? -1 : 1) * (scrollLeft / max);
4545

4646

@@ -128,11 +128,11 @@ export class SegmentView implements ComponentInterface {
128128
this.resetScrollEndTimeout();
129129

130130
const contentWidth = this.el.offsetWidth;
131-
const offset = index * contentWidth;
131+
const offset = index * contentWidth;
132132

133133
this.el.scrollTo({
134134
top: 0,
135-
left: (isRTL(this.el) ? -1 : 1 ) * offset,
135+
left: (isRTL(this.el) ? -1 : 1) * offset,
136136
behavior: smoothScroll ? 'smooth' : 'instant',
137137
});
138138
}

0 commit comments

Comments
 (0)