CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-better-scroll--mouse-wheel

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%

Overview
Eval results
Files

rubric.jsonevals/scenario-8/

{
  "context": "This criteria evaluates how well the engineer uses BetterScroll's state management methods (enable, disable, refresh, destroy) to implement a dynamic content scroller with proper lifecycle management.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "BScroll instantiation",
      "description": "Creates a BScroll instance using 'new BScroll(wrapper, options)' with the wrapper element and appropriate configuration options",
      "max_score": 15
    },
    {
      "name": "enable() usage",
      "description": "Uses the BScroll 'enable()' method to enable scrolling functionality in the enableScroll() method",
      "max_score": 20
    },
    {
      "name": "disable() usage",
      "description": "Uses the BScroll 'disable()' method to disable scrolling functionality in the disableScroll() method",
      "max_score": 20
    },
    {
      "name": "refresh() usage",
      "description": "Uses the BScroll 'refresh()' method to recalculate scroll boundaries after content changes in the updateContent() method",
      "max_score": 25
    },
    {
      "name": "destroy() usage",
      "description": "Uses the BScroll 'destroy()' method to properly clean up all resources and event listeners in the cleanup() method",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-better-scroll--mouse-wheel

tile.json