You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/developers.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,10 @@ Returns the initial scale bounds of each scale before any zooming or panning too
42
42
43
43
Returns whether the chart has been zoomed or panned - i.e. whether the initial scale of any axis is different to the one used currently.
44
44
45
+
### `chart.isZoomingOrPanning(): boolean`
46
+
47
+
Returns whether the user is currently in the middle of a drag operation or pan operation.
48
+
45
49
## Custom Scales
46
50
47
51
You can extend chartjs-plugin-zoom with support for [custom scales](https://www.chartjs.org/docs/latest/developers/axes.html) by using the zoom plugin's `zoomFunctions`, `zoomRectFunctions`, and `panFunctions` members. These objects are indexed by scale types (scales' `id` members) and give optional handlers for zoom and pan functionality.
0 commit comments