File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
packages/core/src/container/Pane Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @vue-flow/core " : patch
3
+ ---
4
+
5
+ Only capture pointer when a valid selection has started
Original file line number Diff line number Diff line change @@ -115,7 +115,6 @@ function onWheel(event: WheelEvent) {
115
115
116
116
function onPointerDown(event : PointerEvent ) {
117
117
containerBounds .value = vueFlowRef .value ?.getBoundingClientRect ()
118
- ;(event .target as Element )?.setPointerCapture ?.(event .pointerId )
119
118
120
119
if (
121
120
! elementsSelectable .value ||
@@ -127,6 +126,8 @@ function onPointerDown(event: PointerEvent) {
127
126
return
128
127
}
129
128
129
+ ;(event .target as Element )?.setPointerCapture ?.(event .pointerId )
130
+
130
131
const { x, y } = getMousePosition (event , containerBounds .value )
131
132
132
133
selectionStarted = true
You can’t perform that action at this time.
0 commit comments