Skip to content

Commit

Permalink
IE11 touch reports e.buttons = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
leongersen committed Jun 29, 2015
1 parent 0606702 commit 2df85a2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions distribute/nouislider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! noUiSlider - 8.0.0 - 2015-06-29 17:25:17 */
/*! noUiSlider - 8.0.1 - 2015-06-29 19:11:22 */

/*jslint browser: true */
/*jslint white: true */
Expand Down Expand Up @@ -1118,7 +1118,7 @@ function closure ( target, options ){
e = fixEvent(e);

// Ignore right or middle clicks on start #454
if ( events === actions.start && e.buttons !== undefined && e.buttons !== 1 ) {
if ( events === actions.start && e.buttons !== undefined && e.buttons > 1 ) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion distribute/nouislider.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions distribute/nouislider.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "noUiSlider",
"version": "8.0.0",
"version": "8.0.1",
"main": "distribute/jquery.nouislider",
"devDependencies": {
"grunt": "~0.4.1",
Expand Down
2 changes: 1 addition & 1 deletion src/js/scope_events.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
e = fixEvent(e);

// Ignore right or middle clicks on start #454
if ( events === actions.start && e.buttons !== undefined && e.buttons !== 1 ) {
if ( events === actions.start && e.buttons !== undefined && e.buttons > 1 ) {
return false;
}

Expand Down

0 comments on commit 2df85a2

Please sign in to comment.