File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
apps/renderer/src/pages/(main) Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ export function Component() {
147
147
< AppLayoutGridContainerProvider >
148
148
< FeedResponsiveResizerContainer containerRef = { containerRef } >
149
149
< DndContext
150
+ autoScroll = { { threshold : { x : 0 , y : 0.2 } } }
150
151
sensors = { sensors }
151
152
collisionDetection = { pointerWithin }
152
153
onDragEnd = { handleDragEnd }
Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ export function useKeyPressing(key: string) {
5
5
6
6
useEffect ( ( ) => {
7
7
const handleKeyDown = ( event : KeyboardEvent ) => {
8
- setKeysPressed ( ( prev ) => new Set ( prev ) . add ( event . key ) )
8
+ setKeysPressed ( ( prev ) => {
9
+ const newSet = new Set ( prev )
10
+ newSet . add ( event . key )
11
+ return newSet
12
+ } )
9
13
}
10
14
11
15
const handleKeyUp = ( event : KeyboardEvent ) => {
You can’t perform that action at this time.
0 commit comments