Skip to content

Commit

Permalink
hot fix: use on pointer leave which has the correct semantic for scro…
Browse files Browse the repository at this point in the history
…ll canceling on leave
  • Loading branch information
bbohlender committed Jun 25, 2024
1 parent 8ecf36f commit a2db255
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/uikit/src/scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,7 @@ export function computedScrollHandlers(
object.current!.worldToLocal(interaction.point.copy(point))
},
onPointerUp: onPointerFinish,
onPointerOut: (e: ThreeEvent<PointerEvent>) => {
if (e.object != interactionPanel) {
return
}
onPointerFinish(e)
},
onPointerLeave: onPointerFinish,
onPointerCancel: onPointerFinish,
onPointerMove: (event) => {
const prevInteraction = downPointerMap.get(event.nativeEvent.pointerId)
Expand Down

0 comments on commit a2db255

Please sign in to comment.