This commit is contained in:
vladimir%pobox.com 2005-04-24 10:59:07 +00:00
Родитель 780708138b
Коммит 32154cc3bd
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -1003,7 +1003,10 @@
// we need to set a mouse offset, since we're not dragging from
// one end of the element
if (aEventBox) {
this.mDragState.mouseOffset = aMouseY - aEventBox.boxObject.y;
if (this.getAttribute("orient") == "vertical")
this.mDragState.mouseOffset = aMouseY - aEventBox.boxObject.y;
else
this.mDragState.mouseOffset = aMouseX - aEventBox.boxObject.x;
}
} else {
dump ("+++ Invalid grabbed element: '" + aGrabbedElement + "'\n");