flowmap-effect icon indicating copy to clipboard operation
flowmap-effect copied to clipboard

Mobile functionality / Enable only while hovering over the specific canvas

Open marianssen opened this issue 4 years ago • 1 comments

Hi!

I really love your plugin, and I'm trying to implement it a a full website with other content as well. Desktop version works just fine, since the user can easily scroll. However, on mobile, the scroll is over-ridden by the javascript, so the user is not able to scroll the website at all.

My question is - what do you think would be the easiest way to fix this? Would it be possible to track the mouse position only inside a certain div?

marianssen avatar Dec 06 '21 21:12 marianssen

Nevermind, I got it working by changing the window parameter in lines:

window.addEventListener("touchstart", updateMouse, false);
window.addEventListener("touchmove", updateMouse, { passive: false });
window.addEventListener("mousemove", updateMouse, false);

marianssen avatar Dec 06 '21 22:12 marianssen