SyntaxFix
Write A Post
Hire A Developer
Questions
I would suggest this:
e.pageX - this.getBoundingClientRect().left