File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
core/src/components/segment-view Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments