A TypeScript plugin for BetterScroll that provides enhanced mouse wheel scrolling capabilities with configurable speed, direction, easing, and boundary damping on PC platforms.
98
Pending
Does it follow best practices?
Impact
98%
1.03xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
{
"context": "This criteria evaluates how effectively the engineer uses the @better-scroll/core package's programmatic scroll control methods (scrollTo, scrollBy, scrollToElement) to implement a navigation manager. The focus is on proper usage of these specific API methods with correct parameters.",
"type": "weighted_checklist",
"checklist": [
{
"name": "BScroll instantiation",
"description": "Creates a BScroll instance correctly using 'new BScroll(element, options)' with the wrapper element as the first parameter",
"max_score": 15
},
{
"name": "scrollTo method usage",
"description": "Uses the 'scrollTo(x, y, time, easing)' method to implement scrollToPosition, passing coordinates and animation time correctly",
"max_score": 25
},
{
"name": "scrollBy method usage",
"description": "Uses the 'scrollBy(deltaX, deltaY, time, easing)' method to implement scrollByOffset, correctly applying relative offsets",
"max_score": 25
},
{
"name": "scrollToElement method usage",
"description": "Uses the 'scrollToElement(element, time, offsetX, offsetY, easing)' method to implement scrollToTarget, correctly targeting elements with offset parameters",
"max_score": 25
},
{
"name": "Resource cleanup",
"description": "Implements proper cleanup by calling the BScroll instance's 'destroy()' method in the navigation manager's destroy method",
"max_score": 10
}
]
}docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10