Skip to content

Commit

Permalink
fix DragEventPlugin initial pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
TahaSh committed Aug 28, 2024
1 parent bcd0c08 commit 874a2cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/builtin-plugins/DragEventPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ export class DragEventPlugin extends EventPlugin {
this._pointerDownPerView.set(view.id, view.intersects(x, y))
this._targetPerView.set(view.id, target)
const initialPointer = new Vec2(
x - view.position.x,
y - view.position.y
x - view.position.initialX,
y - view.position.initialY
)
this._pointerX = x
this._pointerY = y
Expand Down

0 comments on commit 874a2cb

Please sign in to comment.