Skip to content

Commit

Permalink
Disabled reaction to right mouse button.
Browse files Browse the repository at this point in the history
  • Loading branch information
anovi committed Jun 28, 2014
1 parent 56a7bfd commit f8d00ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selectonic.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
var _this = this, name = this._name;

this._mouseEvent = function(e) {
if ( _this._isEnable ) { _this._mouseHandler.call(_this, e); }
if ( _this._isEnable && e.which === 1) { _this._mouseHandler.call(_this, e); }
};
this._keyboardEvent = function(e) {
if( _this.options.get('keyboard') && _this._isEnable ) { _this._keyHandler.call(_this, e); }
Expand Down

0 comments on commit f8d00ec

Please sign in to comment.