From 5521ef4550c64079bbe2254883e99482c8e4871b Mon Sep 17 00:00:00 2001 From: Aaron Date: Thu, 26 Sep 2024 10:52:46 +0800 Subject: [PATCH] refactor(behaviors): set default value of scroll canvas range to Infinity (#6361) Co-authored-by: antv --- packages/g6/src/behaviors/scroll-canvas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/g6/src/behaviors/scroll-canvas.ts b/packages/g6/src/behaviors/scroll-canvas.ts index f0dd87c78e..d11f2b5e01 100644 --- a/packages/g6/src/behaviors/scroll-canvas.ts +++ b/packages/g6/src/behaviors/scroll-canvas.ts @@ -84,7 +84,7 @@ export class ScrollCanvas extends BaseBehavior { enable: true, sensitivity: 1, preventDefault: true, - range: 0.5, + range: Infinity, }; private shortcut: Shortcut;