carson
(Carson)
24 يونيو 2022، 9:15م
1
لم أكن متأكدًا مما إذا كان يجب علي وضع هذا تحت خطأ أو تجربة مستخدم، ويمكن اعتبار هذا تافهًا وغير مهم، ولكني لاحظت في العديد من سمات Discourse وجود قفزة مزعجة بمقدار 1 بكسل أسفل شريط التنقل عند تحديث الصفحة وتفيض الصفحة (يوجد شريط تمرير)، وهي موجودة على كل من الأجهزة المحمولة وسطح المكتب. أتساءل عما إذا كانت هناك طريقة للتخلص منها لتجربة مستخدم أكثر سلاسة؟
5 إعجابات
Johani
(Joe)
27 يونيو 2022، 1:32م
6
شكراً على التقرير يا @carson . لقد تمكنا من تتبع المشكلة وسنقوم بإصدار حل خلال الأيام القليلة القادمة.
5 إعجابات
Johani
(Joe)
13 يوليو 2022، 7:04ص
8
شكراً للإبلاغ عن المشكلة يا @carson
لدينا إصلاح لها هنا
main ← hnb-ku:fix-navigation-jitter
opened 04:27AM - 13 Jul 22 UTC
Context: https://meta.discourse.org/t/pixel-jump-whenever-page-refreshes-mobile-… desktop/231053
We currently add 1 extra pixel when we try to restore the last scroll position on a few routes.
This is causing a bit of jumpiness, as described in the linked topic above.
<img height="300" src="https://d11a6trkgmumsb.cloudfront.net/original/4X/a/e/9/ae9e69f7fd40daba8bc0b41fec9cafbf0d4b3830.gif">
Notice how the content shifts by 1px while stuff loads.
I believe this 1px that we add is an artifact from the days when we used to set the header to `fixed` but I'm not sure. Either way, the header now uses `position: sticky;` so we shouldn't need that 1px adjustment.
This PR introduced no visual changes except that it fixes the jitter mentioned above.
6 إعجابات