mirror of https://github.com/luileito/jsketch.git
Don't handle right clicks
This commit is contained in:
parent
47b1a4c4ed
commit
23e14d255c
|
|
@ -265,7 +265,6 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
@ -376,6 +375,9 @@
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
function downHandler(e) {
|
function downHandler(e) {
|
||||||
|
// Don't handle right clicks.
|
||||||
|
if (e.which === 3) return false;
|
||||||
|
|
||||||
var idx = e.identifier || 0;
|
var idx = e.identifier || 0;
|
||||||
var elem = $(e.target), data = elem.data(_ns), options = data.options;
|
var elem = $(e.target), data = elem.data(_ns), options = data.options;
|
||||||
data.sketch.isDrawing = true;
|
data.sketch.isDrawing = true;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue