perf(segment): improve scrolling performance on ios when using segment (#22110)

resolves #22095
This commit is contained in:
Liam DeBeasi
2020-09-21 15:39:09 -04:00
committed by GitHub
parent ec9e0a2ee7
commit 68afc49e9e
3 changed files with 4 additions and 8 deletions

View File

@ -244,7 +244,7 @@ export class Segment implements ComponentInterface {
// Scale the indicator width to match the previous indicator width
// and translate it on top of the previous indicator
const transform = `translate3d(${xPosition}px, 0, 0) scaleX(${widthDelta})`;
const transform = `translate(${xPosition}px, 0) scaleX(${widthDelta})`;
writeTask(() => {
// Remove the transition before positioning on top of the previous indicator