mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 05:58:26 +08:00
perf(animation): improves _progress() hot function
- progress() is the function where more time is spent during any swipe gesture - replace iterating over the _fx properties, using an array instead - optimize pointerCoord(), profiler showed it’s one of the most called functions
This commit is contained in:
@ -51,7 +51,7 @@ ion-menu ion-backdrop {
|
||||
z-index: -1;
|
||||
display: none;
|
||||
|
||||
opacity: .1;
|
||||
opacity: .01;
|
||||
}
|
||||
|
||||
.menu-content {
|
||||
|
@ -232,7 +232,8 @@ describe('Refresher', () => {
|
||||
function touchEv(y: number) {
|
||||
return {
|
||||
type: 'mockTouch',
|
||||
touches: [{clientY: y}],
|
||||
pageX: 0,
|
||||
pageY: y,
|
||||
preventDefault: function(){}
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user