<commit_before># jQuery Mouse Wheel Plugin

A jQuery v1.7+ plugin that adds cross-browser mouse wheel support.

This plugin adds a "mousewheel" event into jQuery from which you can build custom mousewheel support into your application. Your event callback receives four arguments, `event`, `delta`, `deltaX` and `deltaY` - these are the normalized delta values. `delta` will always be the biggest value of `deltaX` and `deltaY` and you can use it if you don't care about scrolling direction.

### Notes on Firefox

At present, diagonal scrolling doesn't work in Firefox (i.e. different `deltaX` and `deltaY` values in the same event) - this is a limitation with Firefox and there is no work around :( Clone the repo and fire up test/index.html in Chrome and Firefox and you can see the difference in Firefox.

## Usage

Here is an example of using add a mousewheel event to an element.

    // binding an event
    $("#my_elem").on("mousewheel", function(event, delta, deltaX, deltaY) {
        console.log(delta, deltaX, deltaY);
    });

    // unbinding an event
    $("#my_elem").off("mousewheel");


## License

This plugin is licensed under the MIT License (LICENSE.txt).

Copyright (c) 2012 [<NAME>](http://cobbweb.me), [<NAME>](http://brandonaaron.net)

Also thanks to:
 * http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Mathias Bank (http://www.mathias-bank.de) for a scope bug fix.
 * <NAME> for adding deltaX and deltaY<commit_msg>Notes on jQuery version support<commit_after># jQuery Mouse Wheel Plugin

A jQuery v1.7+ plugin that adds cross-browser mouse wheel support.

**Pre v1.7 jQuery support:** Use [Brandon Aaron's](http://brandonaaron.net) original [jquery-mousewheel](https://github.com/brandonaaron/jquery-mousewheel) if you're using an older version of jQuery.

This plugin adds a "mousewheel" event into jQuery from which you can build custom mousewheel support into your application. Your event callback receives four arguments, `event`, `delta`, `deltaX` and `deltaY` - these are the normalized delta values. `delta` will always be the biggest value of `deltaX` and `deltaY` and you can use it if you don't care about scrolling direction.

### Notes on Firefox

At present, diagonal scrolling doesn't work in Firefox (i.e. different `deltaX` and `deltaY` values in the same event) - this is a limitation with Firefox and there is no work around :( Clone the repo and fire up test/index.html in Chrome and Firefox and you can see the difference in Firefox.

## Usage

Here is an example of using add a mousewheel event to an element.

    // binding an event
    $("#my_elem").on("mousewheel", function(event, delta, deltaX, deltaY) {
        console.log(delta, deltaX, deltaY);
    });

    // unbinding an event
    $("#my_elem").off("mousewheel");


## License

This plugin is licensed under the MIT License (LICENSE.txt).

Copyright (c) 2012 [<NAME>](http://cobbweb.me), [<NAME>](http://brandonaaron.net)

Also thanks to:
 * http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Mathias Bank (http://www.mathias-bank.de) for a scope bug fix.
 * <NAME> for adding deltaX and deltaY
{'fraction_non_alphanumeric': 0.10430622009569378, 'fraction_numerical': 0.004465709728867623, 'mean_word_length': 4.099186991869919, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1724202', 'n_tokens_mistral': 908, 'n_tokens_neox': 864, 'n_words': 402}