Hello,
im using a jQuery script to draw very simple on a canvas with dynamic background.
My Problem is, as long as im on top of the page it works like a charm, but when the canvas is placed on a site with more content and you have to scroll down, the drawing position doesnt match the mouse position anymore.
I was not able to find the causing issue, i hope you can help me.
Code with example:
Result Preview: https://jsfiddle.net/dkpqynme/show
With code: https://jsfiddle.net/dkpqynme/
Thank you very much in advance for your help,
Christian
im using a jQuery script to draw very simple on a canvas with dynamic background.
My Problem is, as long as im on top of the page it works like a charm, but when the canvas is placed on a site with more content and you have to scroll down, the drawing position doesnt match the mouse position anymore.
I was not able to find the causing issue, i hope you can help me.
Code with example:
Result Preview: https://jsfiddle.net/dkpqynme/show
With code: https://jsfiddle.net/dkpqynme/
Thank you very much in advance for your help,
Christian