mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 08:27:03 +03:00
Uploading and preparing the repository to the dev version.
Original unminified source code (dev folder - js, css, less) (fixes #6) Grunt build system Multiple identities correction (fixes #9) Compose html editor (fixes #12) New general settings - Loading Description New warning about default admin password Split general and login screen settings
This commit is contained in:
parent
afad45137e
commit
4cc2207513
846 changed files with 99453 additions and 2123 deletions
58
vendors/jquery-mousewheel/README.markdown
vendored
Normal file
58
vendors/jquery-mousewheel/README.markdown
vendored
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
# jQuery Mouse Wheel Plugin
|
||||
|
||||
A [jQuery](http://jquery.com/) plugin that adds cross-browser mouse wheel support.
|
||||
|
||||
In order to use the plugin, simply bind the `mousewheel` event to an element.
|
||||
It also provides two helper methods called `mousewheel` and `unmousewheel`
|
||||
that act just like other event helper methods in jQuery. The event callback
|
||||
receives three extra arguments which are the normalized "deltas" of the mouse wheel.
|
||||
|
||||
Here is an example of using both the bind and helper method syntax:
|
||||
|
||||
```js
|
||||
// using bind
|
||||
$('#my_elem').on('mousewheel', function(event, delta, deltaX, deltaY) {
|
||||
console.log(delta, deltaX, deltaY);
|
||||
});
|
||||
|
||||
// using the event helper
|
||||
$('#my_elem').mousewheel(function(event, delta, deltaX, deltaY) {
|
||||
console.log(delta, deltaX, deltaY);
|
||||
});
|
||||
```
|
||||
|
||||
## See it in action
|
||||
[See the tests on Github](http://brandonaaron.github.io/jquery-mousewheel/test).
|
||||
|
||||
## Using with [Browserify](http://browserify.org)
|
||||
|
||||
Support for browserify is baked in.
|
||||
|
||||
```bash
|
||||
npm install jquery-mousewheel
|
||||
npm install jquery-browserify
|
||||
```
|
||||
|
||||
In your server-side node.js code:
|
||||
|
||||
```js
|
||||
var express = require('express');
|
||||
var app = express.createServer();
|
||||
|
||||
app.use(require('browserify')({
|
||||
require : [ 'jquery-browserify', 'jquery-mousewheel' ]
|
||||
}));
|
||||
```
|
||||
|
||||
In your browser-side javascript:
|
||||
|
||||
```js
|
||||
var $ = require('jquery-browserify');
|
||||
require('jquery-mousewheel')($);
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
This plugin is licensed under the [MIT License](LICENSE.txt).
|
||||
|
||||
Copyright (c) 2013 [Brandon Aaron](http://brandon.aaron.sh)
|
||||
Loading…
Add table
Add a link
Reference in a new issue