bug fixe + mac hack for mouse wheel with an external mouse