When the Magic Mouse battery gets critically low, the first function to suffer is usually the more complex gestures (like scrolling and swiping), while the basic cursor tracking remains active for a while longer.
Press the power button, and immediately hold down these four keys simultaneously: . magic mouse not scrolling
Ensure is toggled to your preference.