We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bac96c1 commit 1c6f2a5Copy full SHA for 1c6f2a5
src/actions/clipboard.ts
@@ -5,7 +5,6 @@
5
*/
6
7
import {
8
- ASTNode,
9
ContextMenuRegistry,
10
Gesture,
11
ShortcutRegistry,
src/keyboard_drag_strategy.ts
@@ -6,4 +6,12 @@
import {dragging} from 'blockly';
-export class KeyboardDragStrategy extends dragging.BlockDragStrategy {}
+export class KeyboardDragStrategy extends dragging.BlockDragStrategy {
+ override startDrag(e?: PointerEvent) {
+ super.startDrag(e);
12
+ // Set position of the dragging block, so that it doesn't pop
13
+ // to the top left of the workspace.
14
+ // @ts-expect-error block and startLoc are private.
15
+ this.block.moveDuringDrag(this.startLoc);
16
+ }
17
+}
0 commit comments