Skip to content
This repository was archived by the owner on Feb 25, 2024. It is now read-only.

Commit 632f950

Browse files
authored
Fixed panning/dragging interations (the ones that include pressing pointer down) in FireFox (#343)
1 parent 42d1303 commit 632f950

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/healthy-lies-jump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'xstate-viz-app': patch
3+
---
4+
5+
Fixed panning/dragging interations (the ones that include pressing pointer down) in FireFox.

src/dragSessionTracker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export const dragSessionTracker = dragSessionModel.createMachine(
141141
ref!.current!.releasePointerCapture(session!.pointerId),
142142
setSessionData: assign({
143143
session: (ctx, ev: any) => {
144-
if (ev.pointerId && ev.point)
144+
if ('pointerId' in ev && ev.point)
145145
return {
146146
pointerId: ev.pointerId,
147147
point: ev.point,

0 commit comments

Comments
 (0)