I just started having the exact same issue today. I thought it was a browser issue but I've checked on both google chrome and firefox and dealing with the same problem. Whenever I go on youtube and start a video the pointer freezes. Everything was working fine until today. I've got a logitech g502 mouse.
I'm using a pc not a laptop.