Skip to content

Commit

Permalink
Merge pull request #105 from Absulit/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Absulit authored May 19, 2024
2 parents 1b2fd13 + a79945c commit f5e8174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/absulit.points.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default class Points {
this._canvas.addEventListener('click', e => {
this._mouseClick = true;
});
this._canvas.addEventListener('mousemove', this._onMouseMove);
this._canvas.addEventListener('mousemove', this._onMouseMove, { passive: true });
this._canvas.addEventListener('mousedown', e => {
this._mouseDown = true;
});
Expand All @@ -129,7 +129,7 @@ export default class Points {
this._canvas.addEventListener('wheel', e => {
this._mouseWheel = true;
this._mouseDelta = [e.deltaX, e.deltaY];
});
}, { passive: true });
this._originalCanvasWidth = this._canvas.clientWidth;
this._originalCanvasHeigth = this._canvas.clientHeight;
window.addEventListener('resize', this._resizeCanvasToFitWindow, false);
Expand Down

0 comments on commit f5e8174

Please sign in to comment.