From 335be796c85b3781559f4487f87944a114f36443 Mon Sep 17 00:00:00 2001 From: Mingfei Ding Date: Wed, 11 Oct 2023 15:56:15 +0800 Subject: [PATCH] test(selection): allow panning with mouseWheelDown in the selection example --- examples/x6-example-features/src/pages/selection/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/x6-example-features/src/pages/selection/index.tsx b/examples/x6-example-features/src/pages/selection/index.tsx index 4c0328ddd93..9a5f2b9bb4b 100644 --- a/examples/x6-example-features/src/pages/selection/index.tsx +++ b/examples/x6-example-features/src/pages/selection/index.tsx @@ -13,6 +13,10 @@ export default class Example extends React.Component { width: 800, height: 600, grid: true, + panning: { + enabled: true, + eventTypes: ['mouseWheelDown'], + }, }) const keyboard = new Keyboard()