Bug 43134 Dragging scrollbar thumb in the threadPane initiates a drag, fix the address book part. r=putterman

This commit is contained in:
chuang%netscape.com 2000-06-22 23:15:08 +00:00
parent 49892e9607
commit af0a821c6d
3 changed files with 16 additions and 1 deletions

View File

@ -81,6 +81,10 @@ function BeginDragResultTree(event)
// if the click is on the tree proper, ignore it. We only care about clicks on items.
if (event.target.localName != "treecell" &&
event.target.localName != "treeitem")
return false;
var tree = resultsTree;
if ( event.target == tree )
return(true); // continue propagating the event
@ -138,6 +142,10 @@ function DropOnDirectoryTree(event)
{
debugDump("DropOnTree\n");
if (event.target.localName != "treecell" &&
event.target.localName != "treeitem")
return false;
var RDF = GetRDFService();
if (!RDF) return(false);

View File

@ -31,7 +31,7 @@ Rights Reserved.
datasources="rdf:addressdirectory rdf:addresscard"
onselect="top.ResultsPaneSelectionChange(); document.commandDispatcher.updateCommands('tree-select');"
onblur="goOnEvent(this,'blur')"
onclick="if ( event.detail == 2 ) top.AbEditCard();"
onclick="clickResultsTree(event);"
containment="http://home.netscape.com/NC-rdf#CardChild"
allownegativeassertions="false"
coalesceduplicatearcs="false"

View File

@ -277,5 +277,12 @@ function AbDeleteDirectory()
top.addressbook.deleteAddressBooks(dirTree.database, parentArray, dirTree.selectedItems);
}
function clickResultsTree(event)
{
if (event.target.localName != "treecell" &&
event.target.localName != "treeitem")
return;
if ( event.detail == 2 ) top.AbEditCard();
}