提交 | 用户 | 时间
|
58d006
|
1 |
# noUiSlider |
A |
2 |
_Current version: 4.0.2_ |
|
3 |
|
|
4 |
noUiSlider is a super tiny jQuery plugin that allows you to create range sliders. |
|
5 |
It fully supports touch, and it is way(!) less bloated than the jQueryUI library. |
|
6 |
|
|
7 |
A full documentation, including examples, is available on the [noUiSlider documentation page](http://refreshless.com/nouislider/). |
|
8 |
|
|
9 |
Changes |
|
10 |
------- |
|
11 |
|
|
12 |
**Changelog for version 4.0.2:** |
|
13 |
_[current patch release]_ |
|
14 |
+ Fixed some minor CSS issues in the default theme |
|
15 |
+ The slider will no longer force an arbitrary width or height |
|
16 |
+ Changed source to comply to more JsLint suggestions |
|
17 |
+ Removed compressed versions from the tracking system. They'll still be produced and provided, but they'll only be bundled in the [Github Releases Feature](https://github.com/blog/1547-release-your-software). |
|
18 |
+ Some very small changes to internal input testing |
|
19 |
|
|
20 |
**Changelog for version 4:** |
|
21 |
_[current major release]_ |
|
22 |
|
|
23 |
+ Massive update overhauling the entire code style |
|
24 |
+ Better styling possibilities |
|
25 |
+ Brand new Flat theme |
|
26 |
+ Windows Phone 8 support |
|
27 |
+ Performance improvements |
|
28 |
+ New way of handling disabled sliders |
|
29 |
+ Internal option testing provides feedback on issues |
|
30 |
|
|
31 |
Version numbering |
|
32 |
------------------------------ |
|
33 |
Version numbering follows the 'Semantic versioning' style. |
|
34 |
You'll find an excellent documentation at [Semver.org](http://semver.org/). |
|
35 |
|
|
36 |
Compression and Error checking |
|
37 |
------------------------------ |
|
38 |
**CSS** ([CSSMinifier](http://cssminifier.com/)) |
|
39 |
The stylesheet is trimmed of whitespace and comments to provide a `min` version. |
|
40 |
|
|
41 |
**JS** ([Google Closure Compiler](http://closure-compiler.appspot.com/home)) |
|
42 |
The plugin is compressed using the Google Closure compiler, using the 'simple' optimization option. |
|
43 |
|
|
44 |
|
|
45 |
**Code** ([JsLint](http://jslint.com/)) |
|
46 |
The plugin code is checked using JsLint, with the following options: |
|
47 |
``` |
|
48 |
browser: true |
|
49 |
devel: true |
|
50 |
plusplus: true |
|
51 |
unparam: true |
|
52 |
sloppy: true |
|
53 |
white: true |
|
54 |
``` |
|
55 |
|
|
56 |
Please note that while some errors remain without these options, they are merely differences in coding style. Using `++` for example, is in my opinion very clear in a `for` loop. Some jQuery methods offer callbacks noUiSlider doesn't require, thus requiring `unparam`, and the `devel` option is required for the `console` statements. The `sloppy` option refers to a missing `"use strict"` statement, which isn't included for lack of testing. |
|
57 |
|
|
58 |
Known issues |
|
59 |
------------ |
|
60 |
There are some minor issues remaining in noUiSlider 4. It is a priority to fix these issues. |
|
61 |
|
|
62 |
+ Firefox will prefer scrolling to dragging the slider on touch events. The `preventDefault()` call that prevents this in other browser seems to fail here. |
|
63 |
+ In IE10, tapping the slider to move it will fail in with these conditions: |
|
64 |
+ The paged is zoomed; |
|
65 |
+ The slider uses the `orientation: vertical` option |
|
66 |
+ The page is scrolled, so that `scrollTop` > 0 |
|
67 |
This issue affects both IE10 in Windows 8 and Windows Phone 8. |