A TypeScript plugin for BetterScroll that provides enhanced mouse wheel scrolling capabilities with configurable speed, direction, easing, and boundary damping on PC platforms.
Overall
score
98%
{
"context": "This criteria evaluates how effectively an engineer uses the better-scroll library's pull-down plugin to implement pull-to-refresh functionality. The evaluation focuses on proper BScroll instantiation, pull-down plugin registration, threshold configuration, event handling with the pullingDown event, completion handling with finishPullDown(), programmatic triggering, and resource cleanup.",
"type": "weighted_checklist",
"checklist": [
{
"name": "BScroll instantiation",
"description": "Creates a BScroll instance with the correct wrapper and content element structure",
"max_score": 15
},
{
"name": "Pull-down plugin usage",
"description": "Uses BScroll.use() to register the pull-down plugin (or imports from the full better-scroll package that includes plugins)",
"max_score": 15
},
{
"name": "Threshold configuration",
"description": "Configures the pullDownRefresh option with a threshold property set to 50 pixels as specified in the requirements",
"max_score": 15
},
{
"name": "pullingDown event handler",
"description": "Registers an event listener for the 'pullingDown' event to handle refresh logic",
"max_score": 20
},
{
"name": "finishPullDown() call",
"description": "Calls finishPullDown() method after loading completes to close the pull-down indicator",
"max_score": 20
},
{
"name": "Programmatic refresh",
"description": "Implements programmatic refresh using autoPullDownRefresh() method or equivalent",
"max_score": 10
},
{
"name": "Instance cleanup",
"description": "Calls destroy() method to properly clean up the BScroll instance when needed",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-better-scroll--mouse-wheeldocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10