Skip to content

Commit

Permalink
Merge pull request #1 from stevendelapena/stevendelapena-patch-1
Browse files Browse the repository at this point in the history
Fix Drag/Release Behavior in GUI and Photo Dome
  • Loading branch information
stevendelapena committed Aug 19, 2022
2 parents 2900529 + 78d50c3 commit ed03efe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/dev/gui/src/2D/advancedDynamicTexture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,9 @@ export class AdvancedDynamicTexture extends DynamicTexture {
const tempViewport = new Viewport(0, 0, 0, 0);

this._prePointerObserver = scene.onPrePointerObservable.add((pi) => {
if (scene.isPointerCaptured(pi.event.pointerId) && pi.type === PointerEventTypes.POINTERUP) {
return;
}
if (
pi.type !== PointerEventTypes.POINTERMOVE &&
pi.type !== PointerEventTypes.POINTERUP &&
Expand Down

0 comments on commit ed03efe

Please sign in to comment.