Skip to content

Commit

Permalink
Merge pull request #92 from VisActor/fix/issue-91
Browse files Browse the repository at this point in the history
fix: wheel event issue
  • Loading branch information
xiaoluoHe authored Jun 27, 2023
2 parents 46d8af1 + fbd76ab commit 83e6552
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/vrender/src/event/event-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ export class EventSystem {
}

domElement.addEventListener('wheel', this.onWheel, {
passive: true,
capture: true
});

Expand Down
2 changes: 1 addition & 1 deletion packages/vrender/src/event/federated-event/wheel-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class FederatedWheelEvent extends FederatedMouseEvent implements WheelEve
event.nativeEvent = this.nativeEvent;
event.originalEvent = this.originalEvent;

this.manager?.copyPointerData(this, event);
this.manager?.copyWheelData(this, event);
this.manager?.copyMouseData(this, event);
this.manager?.copyData(this, event);

Expand Down

0 comments on commit 83e6552

Please sign in to comment.