EbonJaeger / nosquint

NoSquint is a Firefox add-on that allows you to adjust the text-only and full-page zoom levels as well as color settings both globally (for all sites) and per site.
https://urandom.ca/nosquint/
The Unlicense
12 stars 1 forks source link

Implement mousewheel scrolling to zoom in and out #6

Closed EbonJaeger closed 6 years ago

EbonJaeger commented 6 years ago

See the TODO here: https://github.com/Gnat008/nosquint/blob/master/src/content/browser.js#L71

Scrolling down should zoom the page out, while scrolling up should zoom the page in. The amount zoomed should be the "zoom increment" preference that we already have (NSQ.prefs.zoomIncrement).

This should only affect the current site.

To keep this simple, this should do a full browser zoom. Perhaps a preference could be added to change this between full and text zoom later down the line; that will be for a separate issue.