عند سحب مقبض الخط الزمني إلى النهاية، تنتقل إلى أسفل الصفحة. إذا كان عرض نافذتك قصيرًا، فقد يتجاوز ذلك آخر منشور تمامًا وتنتهي في مواضيع مقترحة أو تذييل الصفحة.
عند السحب إلى النهاية، يجب أن تنتهي في أسفل آخر منشور… الانتقال إلى أسفل الصفحة مزعج بشكل خاص في الرسائل الخاصة التي تحتوي على مواضيع ذات صلة ومقترحة.
بالمقارنة، عند النقر على تاريخ آخر منشور، تُنقل إلى أعلى آخر منشور (وهو ما أعتقد أنه منطقي كما هو)
تم تعديل هذا الأمر للجوال مؤخرًا (Jump to last post does not jump to correct position and does not hide jump tool after scrolling )، لكن المشكلة لا تزال قائمة على سطح المكتب.
18 إعجابًا
sam
(Sam Saffron)
7 يناير 2020، 1:29ص
2
أؤيد هذا التغيير، فهو يبسط الأمور ويجعلها متسقة.
@martin هل يمكنك تنفيذ هذا التغيير وتطبيقه على كل من الجوال وسطح المكتب؟ (تأكد من الاختبار في موضوع يحتوي على مشاركة واحدة طويلة جدًا جدًا جدًا)
12 إعجابًا
في غضون ذلك، يمكنك ببساطة النقر في أسفل الشريط التمرير وسيتم نقلك إلى آخر منشور. السحب اليدوي للأسفل ينقلك بالفعل إلى أسفل الصفحة… بعد آخر منشور.
إعجاب واحد (1)
martin
(Martin Brennan)
7 يناير 2020، 4:43ص
5
من الموضوع الآخر، لا يبدو واضحًا لماذا تم تنفيذ وظيفة القفز إلى النهاية هذه من الأساس. إذن، هل يجب أن أفترض ببساطة أنها لم تكن مطلوبة وأزيل كلًا من حل @pmusaraj البديل والوظيفة الأصلية لـ @daniel ؟
إعجاب واحد (1)
sam
(Sam Saffron)
7 يناير 2020، 4:47ص
6
السبب الرئيسي هو أنه إذا كان لديك منشور واحد ضخم جدًا، فستقوم بسحب المحتوى إلى النهاية وستظل عالقًا في أعلى المنشور الأول. كان الأمر محبطًا للغاية.
4 إعجابات
martin
(Martin Brennan)
7 يناير 2020، 4:48ص
7
آه، شكرًا لك على السياق الإضافي. إذن لا يزال الأمر مطلوبًا في بعض الحالات. سأأخذ ذلك في الاعتبار
3 إعجابات
martin
(Martin Brennan)
7 يناير 2020، 6:21ص
8
لقد أضفت إصلاحًا لهذه المشكلة هنا.
master ← issue/fix-scroll-position-last-post
merged 05:37AM - 08 Jan 20 UTC
Meta topic: https://meta.discourse.org/t/dragging-the-timeline-handle-to-the-end… -brings-you-to-the-bottom-of-the-page-not-the-bottom-of-the-discussion/137899
* When using the slider to scroll past the bottom post,
we now scroll to the bottom of the post/page IF the
post height is > the window height (e.g. really long
posts). if the post height is smaller, then we lock
onto and jump to the top of the post
* This also removes the mobile hack that would always jump
to the top of the last post on mobile
This works on both mobile and desktop. To test, try dragging the timeline handle past the end of the last post and letting go. For small height posts we jump to the top of the last posts. For large height posts we jump to the end of the post which often just shows the end of the page with the bottom of the post.
The only main concern I still have here is whether the post height > window height rule is OK. On my laptop my window height for Chrome is ~811 so any post taller than that will make the slider jump to the end of the page. I am not sure how to make this rule more dynamic without adding arbitrary heights to the window height in the comparison or doing ranges e.g. if your window height is 800-1200 the post must be > 1400 height to jump to end of the page etc.
يرجى الاطلاع على ملاحظات طلب السحب (PR) الخاص بي. أعتقد أنه يعمل بشكل جيد، لكن لا يزال هناك مجال للتحسين لجعله أقل صرامة.
9 إعجابات
martin
(Martin Brennan)
10 يناير 2020، 4:19ص
9
@awesomerobot هل يمكنك التأكيد من أن هذا يعمل بشكل أفضل/كما تتوقع الآن
8 إعجابات
نعم، يبدو أنها تعمل بشكل أفضل بكثير الآن.
6 إعجابات