Smooth scrolling not working with Magic Mouse and macOS Catalina 10.15.3

I fixed this by deleting the mouse from Bluetooth settings, and then pairing it again using a lightning cable.