Hi, good tutorial but dont use pageX and pageY use clientX and clientY instead because using page when you scroll down your mouse cursor just desynchronized and looks really weird
Why is mine not moving smoothly? There's a bit of delay before the actual cursor follows the circle and it doesn't have the same speed as the actual cursor.
I useRef for this and have the same issue. I believe is the react shadow dom async update. Did you find any solution to this? I found that translate works better then top, left ref.current.style.transform = `translate(${currPos.x - (btnWidth / 2)}px, ${currPos.y - (btnHeight / 2)}px)`;
Hello! I tried implementing it and it's working... But the response time seems very off. It's lagging VERY much! How to resolve it? and BTW thanks for the tutorial!
Hi ,would appreciate if you can do a series set,for how to do crud operation with all the form controls in react which include example like input /select /radio btn redio btn group /checkbox /date picker/time / file upload/ date range etc...,