As long as you are not triggering the anti-cheat algorithm of the Minecraft server and keeping within the humanly possible limits, you are safe to perform the scroll clicking. Otherwise, it will get you banned.