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.

98

1.03x
Quality

Pending

Does it follow best practices?

Impact

98%

1.03x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-10/

{
  "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
    }
  ]
}

tile.json