Open alex-enchi opened 7 years ago
If page is scrolled down mouse position calculated wrong.
How to check: scroll down the page and try to connector from point.
Using .clientX instead of .pageX should fix this.
.clientX
.pageX
If page is scrolled down mouse position calculated wrong.
How to check: scroll down the page and try to connector from point.
Using
.clientX
instead of.pageX
should fix this.