зеркало из https://github.com/mozilla/pjs.git
fix draggable scrollbars on mac
This commit is contained in:
Родитель
ff5f24368c
Коммит
6dd0aa805e
|
@ -287,7 +287,7 @@ var contentAreaDNDObserver = {
|
||||||
if (textstring != "")
|
if (textstring != "")
|
||||||
htmlstring = "<a href=\"" + textstring + "\">" + textstring + "</a>";
|
htmlstring = "<a href=\"" + textstring + "\">" + textstring + "</a>";
|
||||||
else
|
else
|
||||||
return;
|
throw Components.results.NS_ERROR_FAILURE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,6 +47,8 @@
|
||||||
* // nsTransferable can determine whether
|
* // nsTransferable can determine whether
|
||||||
* // or not to accept drop.
|
* // or not to accept drop.
|
||||||
**/
|
**/
|
||||||
|
|
||||||
|
/** error codes **/
|
||||||
|
|
||||||
var nsDragAndDrop = {
|
var nsDragAndDrop = {
|
||||||
|
|
||||||
|
@ -72,7 +74,16 @@ var nsDragAndDrop = {
|
||||||
var flavourList = null;
|
var flavourList = null;
|
||||||
|
|
||||||
if (aDragDropObserver.onDragStart)
|
if (aDragDropObserver.onDragStart)
|
||||||
flavourList = aDragDropObserver.onDragStart(aEvent);
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
flavourList = aDragDropObserver.onDragStart(aEvent);
|
||||||
|
}
|
||||||
|
catch (e)
|
||||||
|
{
|
||||||
|
return; // not a draggable item, bail!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (! flavourList || flavourList.length < 1)
|
if (! flavourList || flavourList.length < 1)
|
||||||
return;
|
return;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче