I am on dojo 1.7.2 and trying to use drag and drop for the first time.
In dojo/dnd/Source.js, in the function _legalMouseDown
, there is this line:
// accept only the left mouse button
if(!dojo.mouseButtons.isLeft(e)){ return false; }
Comically, .isLeft
is returning false even when I press the left mouse button.
This completely breaks the drag and drop functionality.
I've replaced the code locally with if(!e.button==0){return false;}
, and this seems to be working.
There seem to be multiple implementations of .isLeft
in dojo, some of them are doing ==0
and others are doing &1
.
Question: Have I found a bug, or am I doing something silly?
If it helps to know, I've tested in Chrome (Version 20.0.1132.47) and Firefox (Version 13.0.1).