Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfeng33 committed Nov 16, 2024
1 parent 16aa32c commit af2f313
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
8 changes: 0 additions & 8 deletions apps/www/content/docs/block-menu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ const plugins = [
NodeIdPlugin,
BlockSelectionPlugin.configure({
options: {
areaOptions: {
behaviour: {
scrolling: {
speedDivider: 1.5,
},
startThreshold: 10,
},
},
enableContextMenu: true,
},
}),
Expand Down
5 changes: 3 additions & 2 deletions apps/www/content/docs/block-selection.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
},
},
}
Expand Down

0 comments on commit af2f313

Please sign in to comment.