From af2f313a82d26b8ffda842070d098c0195ac0845 Mon Sep 17 00:00:00 2001 From: Felix Feng Date: Sat, 16 Nov 2024 16:43:35 +0800 Subject: [PATCH] docs --- apps/www/content/docs/block-menu.mdx | 8 -------- apps/www/content/docs/block-selection.mdx | 5 +++-- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/apps/www/content/docs/block-menu.mdx b/apps/www/content/docs/block-menu.mdx index 200ae94ed9..d72f5e165c 100644 --- a/apps/www/content/docs/block-menu.mdx +++ b/apps/www/content/docs/block-menu.mdx @@ -45,14 +45,6 @@ const plugins = [ NodeIdPlugin, BlockSelectionPlugin.configure({ options: { - areaOptions: { - behaviour: { - scrolling: { - speedDivider: 1.5, - }, - startThreshold: 10, - }, - }, enableContextMenu: true, }, }), diff --git a/apps/www/content/docs/block-selection.mdx b/apps/www/content/docs/block-selection.mdx index b862570054..b7f3ea831c 100644 --- a/apps/www/content/docs/block-selection.mdx +++ b/apps/www/content/docs/block-selection.mdx @@ -92,7 +92,7 @@ BlockSelectionPlugin.configure({ useing `options.areaOptions.behaviour.scrolling.speedDivider` to set the scroll speed. -The value of `1.5` is our recommended speed since it's near the browser-native speed. +The value of `0.8` is our recommended speed since it's near the browser-native speed. ```ts @@ -101,11 +101,12 @@ BlockSelectionPlugin.configure({ areaOptions: { behaviour: { scrolling: { + // You can slow down the scroll speed by setting a bigger value. speedDivider: 1.5, }, // The distance needed to move for the selection area to appear. // If it’s too small, it may cause the mouse click event to be blocked. 10 is a good default. - startThreshold: 10, + startThreshold: 4, }, }, }