From 533923bad70d2617970f044617d8c7e0d3c352dd Mon Sep 17 00:00:00 2001 From: Anders Date: Thu, 10 Nov 2016 11:39:53 +0100 Subject: [PATCH] Disabling new selection and dragging using the right mouse button. --- js/jquery.Jcrop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.Jcrop.js b/js/jquery.Jcrop.js index 09b1bcf7..b94d7ada 100644 --- a/js/jquery.Jcrop.js +++ b/js/jquery.Jcrop.js @@ -165,7 +165,7 @@ function createDragger(ord) //{{{ { return function (e) { - if (options.disabled) { + if (options.disabled || e.which == 3) { return false; } if ((ord === 'move') && !options.allowMove) { @@ -230,7 +230,7 @@ if (options.disabled) { return; } - if (!options.allowSelect) { + if (!options.allowSelect || e.which == 3) { return; } btndown = true;