mouse-wheel-mode: enable scrolling with mouse wheels
commit585fb9bcc61bc6ccda44eb5deab41905f8f84bde
authorPeter Lunicks <plunix@users.sourceforge.net>
Sat, 15 Jan 2011 01:57:35 +0000 (14 19:57 -0600)
committerPeter Lunicks <plunix@users.sourceforge.net>
Sun, 16 Dec 2012 08:07:30 +0000 (16 02:07 -0600)
tree80ed0df198595a75dd28fbcb5e9e2f7f33c79ecf
parentfb85580eff00ec2ea4beddc253a96384b1277fe0
mouse-wheel-mode: enable scrolling with mouse wheels

If scrollbars are disabled by setting
buffer.browser.contentWindow.scrollbars.visible to false then the
mouse wheel no longer scrolls the page. This global mode resolves
that problem by listening for DOMMouseScroll events and scrolling
the current window/frame upon receiving an event.

This mode adds a new user variable, mouse_wheel_scroll_lines, which
controls how many lines to scroll by each time a mouse scroll event
is received.
modules/mouse-wheel.js [new file with mode: 0644]
modules/window.js