Commit af2f313 1 parent 16aa32c commit af2f313 Copy full SHA for af2f313
File tree 2 files changed +3
-10
lines changed
2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,6 @@ const plugins = [
45
45
NodeIdPlugin ,
46
46
BlockSelectionPlugin .configure ({
47
47
options: {
48
- areaOptions: {
49
- behaviour: {
50
- scrolling: {
51
- speedDivider: 1.5 ,
52
- },
53
- startThreshold: 10 ,
54
- },
55
- },
56
48
enableContextMenu: true ,
57
49
},
58
50
}),
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ BlockSelectionPlugin.configure({
92
92
93
93
useing ` options.areaOptions.behaviour.scrolling.speedDivider ` to set the scroll speed.
94
94
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.
96
96
97
97
98
98
``` ts
@@ -101,11 +101,12 @@ BlockSelectionPlugin.configure({
101
101
areaOptions: {
102
102
behaviour: {
103
103
scrolling: {
104
+ // You can slow down the scroll speed by setting a bigger value.
104
105
speedDivider: 1.5 ,
105
106
},
106
107
// The distance needed to move for the selection area to appear.
107
108
// 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 ,
109
110
},
110
111
},
111
112
}
You can’t perform that action at this time.
0 commit comments