Skip to content

Commit af2f313

Browse files
committed
docs
1 parent 16aa32c commit af2f313

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

apps/www/content/docs/block-menu.mdx

-8
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ const plugins = [
4545
NodeIdPlugin,
4646
BlockSelectionPlugin.configure({
4747
options: {
48-
areaOptions: {
49-
behaviour: {
50-
scrolling: {
51-
speedDivider: 1.5,
52-
},
53-
startThreshold: 10,
54-
},
55-
},
5648
enableContextMenu: true,
5749
},
5850
}),

apps/www/content/docs/block-selection.mdx

+3-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ BlockSelectionPlugin.configure({
9292

9393
useing `options.areaOptions.behaviour.scrolling.speedDivider` to set the scroll speed.
9494

95-
The value of `1.5` is our recommended speed since it's near the browser-native speed.
95+
The value of `0.8` is our recommended speed since it's near the browser-native speed.
9696

9797

9898
```ts
@@ -101,11 +101,12 @@ BlockSelectionPlugin.configure({
101101
areaOptions: {
102102
behaviour: {
103103
scrolling: {
104+
// You can slow down the scroll speed by setting a bigger value.
104105
speedDivider: 1.5,
105106
},
106107
// The distance needed to move for the selection area to appear.
107108
// If it’s too small, it may cause the mouse click event to be blocked. 10 is a good default.
108-
startThreshold: 10,
109+
startThreshold: 4,
109110
},
110111
},
111112
}

0 commit comments

Comments
 (0)