@mpxjs/webpack-plugin 2.10.3-beta.18 → 2.10.3-beta.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -265,7 +265,7 @@ export default function useAnimationHooks(props) {
265
265
  // eslint-disable-next-line react-hooks/rules-of-hooks
266
266
  const animationStyle = useAnimatedStyle(() => {
267
267
  // console.info(`useAnimatedStyle styles=`, originalStyle)
268
- return animatedStyleKeys.value.reduce((styles, key) => {
268
+ const animatedStyle = animatedStyleKeys.value.reduce((styles, key) => {
269
269
  // console.info('getAnimationStyles', key, shareValMap[key].value)
270
270
  if (Array.isArray(key)) {
271
271
  const transformStyle = getTransformObj(originalStyle.transform || []);
@@ -281,6 +281,8 @@ export default function useAnimationHooks(props) {
281
281
  }
282
282
  return styles;
283
283
  }, {});
284
+ console.log('animatedStyle', animatedStyle)
285
+ return animatedStyle;
284
286
  });
285
287
  return {
286
288
  enableStyleAnimation: enableAnimationRef.current,
@@ -221,6 +221,8 @@ export default {
221
221
  left: 0;
222
222
  right: 0;
223
223
  z-index: 99999;
224
+ /* 脱离上下文,单独渲染加速,修复安卓低端机型在页面滚动时titlebar闪烁问题 */
225
+ transform: translateZ(0);
224
226
  }
225
227
 
226
228
  .mpx-titlebar__content {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.10.3-beta.18",
3
+ "version": "2.10.3-beta.19",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"