I fixed my drift (left con) by bashing the stick really hard in the opposite direction to that which it kept drifting towards. Probably not to be recommended, but it did fix it and never a problem since - and Iâ€™ve played over 600 hours since.
Joy con drift is caused by residue getting caught up, some people have fixed it simply by blowing into it with straws - something like compressed air is probably safer, but better yet would be contact cleaner, which is significantly more effective. What you did was probably dislodge whatever was causing the problem… not what I’d recommend but it did the trick.
I describe myself as a little dose of toxic masculinity.