Skillpedia
المواقع والواجهات (frontend)75k · #3010

scrolljacking

ما الذي تفعله

تتحقق هذه المهارة من أن الموقع لا يغيّر طريقة التمرير الأصلية، مثل سرعتها أو اتجاهها أو القفز صفحة بصفحة، وتزيل هذه التغييرات. وهي موجهة لمطوري الواجهات الأمامية الذين يريدون تمريرًا طبيعيًا للجميع.

متى تستخدمها

  • ✓عندما تطلب من الوكيل التحقق مما إذا كان الموقع يغيّر طريقة عمل التمرير.
  • ✓عندما يشكو الزوار من أن التمرير يبدو متقطعًا أو صعب التحكم.
  • ✓عندما تضيف تأثيرات تمرير مخصصة وتريد منعها من التدخل في التنقل.

رابط المهارة

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/scrolljacking/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/scrolljacking/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“يقول الزوار إن التمرير في موقعي يبدو غريبًا ومتقطعًا. هل يمكنك إزالة أي شيفرة تغيّر طريقة عمل التمرير؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يبحث الوكيل عن JavaScript الذي يتجاوز سرعة التمرير أو اتجاهه أو يفعّل التنقل عند التمرير. يزيل ذلك الكود أو يعدّله، ويبقي أي تأثير مخصص أساسي مع طريقة لإيقافه.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Avoid scrolljacking and custom scroll behavior

Scrolljacking breaks user expectations, interferes with assistive technologies, and creates unpredictable experiences that frustrate users with motor impairments or cognitive disabilities.

Quick Reference

  • Never override native scroll speed or direction
  • Avoid scroll-triggered navigation (one page per scroll)
  • Scrolljacking breaks assistive technologies and user expectations
  • If custom scrolling is essential, provide a way to disable it

Check

Test scrolling behavior and verify it feels native. Check that scroll speed is not modified, scroll direction is not inverted, and scroll events are not hijacked for animations or navigation without user consent.

Fix

Remove JavaScript that overrides default scroll behavior. If custom scrolling is essential, respect prefers-reduced-motion and provide a way to disable custom scroll effects.

Explain

Explain how scrolljacking disrupts expected navigation patterns, interferes with assistive technologies, and creates unpredictable experiences for users with motor impairments or cognitive disabilities.

Code Review

Review the rendered markup and interactive states that affect Avoid scrolljacking and custom scroll behavior. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/accessibility/scrolljacking

الأسئلة الشائعة

ما scrolljacking؟

هو أن يغيّر الموقع سلوك التمرير الطبيعي، فلا تحرك حركة التمرير الصفحة كما يتوقع الزائر.

من يتأثر به؟

تقول المهارة إنه قد يزعج أصحاب الإعاقات الحركية أو المعرفية، وقد يتداخل مع التقنيات المساعدة.

ماذا لو كان تأثير التمرير المخصص مطلوبًا؟

تقول المهارة إن على المرء احترام إعدادات تقليل الحركة، وتوفير طريقة لتعطيل التأثير.

التفاصيل

الوصف الأصلي من المؤلف

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Avoid scrolljacking and custom scroll behavior. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.

repo: thedaviddias/Front-End-Checklist

الشعبية

نجوم GitHub
75k
الترتيب
#3010
الترخيص
MIT
آخر تحديث
31‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة