From f8d00ec046a72ec7bff5bc074166183fc8ff275c Mon Sep 17 00:00:00 2001 From: anovi Date: Sat, 28 Jun 2014 15:56:36 +0400 Subject: [PATCH] Disabled reaction to right mouse button. --- src/selectonic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/selectonic.js b/src/selectonic.js index f2b3f57..116e584 100755 --- a/src/selectonic.js +++ b/src/selectonic.js @@ -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); }