Apple Magic Mouse and MouseEvent.MOUSE_WHEEL

This page created November 6th 2009

Magic Mouse
Apple’s new Magic Mouse uses easing when scrolling. It’s quite a beautiful thing. However, Flash MouseEvent.MOUSE_WHEEL takes issue with it.

Unlike a typical mouse wheel that returns an end delta value of the last line value, the magic mouse’s end delta value will always be zero.

The simple solution is to ignore the zero value : if (event.delta != 0) { SCROLL }