---
title: Custom Behavior
order: 10
---

Custom a behavior when the [built-in behaviors](/en/docs/manual/middle/states/defaultBehavior) do not meet your requirements.

## Usage

Custom a behavior with `graph.registerBehavior`, refer to [Custom Behavior Doc](/en/docs/manual/middle/states/custom-behavior). The following demo shows how to custom a behavior to allow drag and zoom canvas with two fingers on touchpad and wheel.
