selection only with left click (issue 558)

This commit is contained in:
Adam Shaw 2010-10-12 21:13:21 -07:00
parent 1176a7479e
commit fc18816aee
2 changed files with 2 additions and 2 deletions

View file

@ -647,7 +647,7 @@ function AgendaView(element, calendar, viewName) {
function slotSelectionMousedown(ev) {
if (opt('selectable')) {
if (ev.which == 1 && opt('selectable')) { // ev.which==1 means left mouse button
unselect(ev);
var _mousedownElement = this;
var dates;

View file

@ -68,7 +68,7 @@ function SelectionManager() {
var cellDate = t.cellDate;
var cellIsAllDay = t.cellIsAllDay;
var hoverListener = t.getHoverListener();
if (opt('selectable')) {
if (ev.which == 1 && opt('selectable')) { // which==1 means left mouse button
unselect(ev);
var _mousedownElement = this;
var dates;