Skip to content

Commit cca9af4

Browse files
authored
Fix click to zoom sample (#547)
1 parent 2cb5f93 commit cca9af4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/samples/wheel/click-zoom.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const borderPlugin = {
7373
id: 'chartAreaBorder',
7474
beforeDraw(chart, args, options) {
7575
const {ctx, chartArea: {left, top, width, height}} = chart;
76-
if (chart.options.plugins.zoom.zoom.enabled) {
76+
if (chart.options.plugins.zoom.zoom.wheel.enabled) {
7777
ctx.save();
7878
ctx.strokeStyle = 'red';
7979
ctx.lineWidth = 1;
@@ -84,7 +84,7 @@ const borderPlugin = {
8484
};
8585
// </block:border>
8686

87-
const zoomStatus = () => 'Zoom: ' + (zoomOptions.zoom.enabled ? 'enabled' : 'disabled');
87+
const zoomStatus = () => 'Zoom: ' + (zoomOptions.zoom.wheel.enabled ? 'enabled' : 'disabled');
8888

8989
// <block:config:1>
9090
const config = {

0 commit comments

Comments
 (0)