Here's a modified cbeDragEvent() from the file cbe_event.js. This is working in the limited testing I've done. You have to detect IE because all browsers don't update event.button during the mousemove event. Needs more testing, but I think this may be a good change.
Code:
// 8-26-03, mf
function cbeDragEvent(e) {
if (cbeDragObj) {
if (is.ie && e.button != e.LEFT) {
cbeDragEndEvent(e);
}
else {
e.dx = e.pageX - cbeDragObj.x;
e.dy = e.pageY - cbeDragObj.y;
cbeDragObj.x = e.pageX;
cbeDragObj.y = e.pageY;
e.type = 'drag';
e.cbeTarget = cbeDragTarget;
e.cbeCurrentTarget = cbeDragObj;
e.eventPhase = cbeDragPhase;
if (cbeDragObj.ondrag) cbeEval(cbeDragObj.ondrag, e);
else cbeDragObj.moveBy(e.dx,e.dy);
e.type = 'mousemove';
}
}
e.preventDefault();
}
Bookmarks