Skip to content

Commit

Permalink
fix: sticky horizontal position #7
Browse files Browse the repository at this point in the history
  • Loading branch information
drementer authored Jun 6, 2022
1 parent cbb0439 commit 921b286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ export default class MouseFollower {
const rect = el.getBoundingClientRect();
this.stick = {
y: rect.top + (rect.height / 2),
x: rect.left + (rect.height / 2),
x: rect.left + (rect.width / 2),
};
}

Expand Down

0 comments on commit 921b286

Please sign in to comment.