main ← small-lovely-cat:fix-chat-setting-scroll
opened 08:25AM - 30 Nov 25 UTC
In #36248 and #36253, commits preventing scroll of body on IOS/iPadOS is impleme…nted.
However, it accidentally limits the scroll of the setting page/member list of the chat, making leaving a PM/fetching the downer side of the member list difficult on these devices, since all these elements are not scrollable.
Back to the question, we implement a better way to prevent the whole page from scrolling, just set `position: fixed` and `overflow: scroll` rather than using `overflow: hidden` on the body object, and `height: 100%` and `width: 100%` are already implemented, so that the page fits the viewbox.
Before the fix(scratch up the page using mouse, but can't reach the leave button / the member page can't load):
<img width="449" height="801" alt="image" src="https://github.com/user-attachments/assets/4eb510ca-de6a-44ed-8351-779a6562b42a" />
<img width="454" height="796" alt="image" src="https://github.com/user-attachments/assets/0c861cd6-bde4-49e5-ac5d-2d28aeb5e337" />
After the fix:
<img width="1919" height="914" alt="image" src="https://github.com/user-attachments/assets/44bdf71e-a402-49ff-8a85-49b99e4e1644" />
<img width="1919" height="963" alt="image" src="https://github.com/user-attachments/assets/a6d2b27e-7ea5-4d06-ac43-b16b910c0639" />