dcloudio / dcloudio/uni-app

scroll-view组件在使用scroll-with-animation时fixed元素跟着滚动

Open
#5,501 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
41.6k
Forks
3.7k
Avg merge
7h 6m
Merged PRs (30d)
6

Description

### 发行方式

None

### 具体平台

uniapp h5

### 开发环境

None

### 项目创建方式

None

### 依赖版本

Hbuildx: 4.66

### 问题描述

![Image](https://github.com/user-attachments/assets/be7c6048-bed1-45df-b4ab-48058796afcf)
scroll-view组件在使用scroll-with-animation时,使用transform进行的过渡。当里面存在fixed元素时,也跟着过渡了

### 重现步骤

1. scrollview 开启scroll-with-animation。
2. scrollview 里面放一个fixed元素。
3. scroll-into-view滚动到目标元素时,fixed也跟着跑

### 期望行为

fixed元素不应该动

### 实际行为

_No response_

### 截图或录屏

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.