iBooks for OS X cannot scroll div using mouse wheel

483 views Asked by At

I'm building an epub for iBooks. The xhtml files in this epub contain a popup with scrollable content. This is only a div inside another div with overflow: scroll. As expected, this works in a web browser, and in iBooks for iPad too.

The problem is in iBooks for OS X (Mavericks). This version of iBooks seems not to listen to 'mousewheel' events in javascript. At first, it doesn't even display the scrollbars. I could make the scrollbars appear with css, and the content can now be scrolled using the visible scrollbar. It just doesn't want to scroll with the mouse wheel. Also, attaching a onmousewheel event with javascript doesn't work either.

I have to use Mootools, so no jQuery solution works for this case.

0

There are 0 answers