mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
perf(segment): improve scrolling performance on ios when using segment (#22110)
resolves #22095
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user