зеркало из https://github.com/mozilla/pjs.git
Bug 243720. Dragging stuff into menus should use screenX to avoid ambiguous semantics of clientX in popups. r+sr=neil
This commit is contained in:
Родитель
cde78f4c3b
Коммит
b1bd036d89
|
@ -212,15 +212,15 @@ var BookmarksMenu = {
|
|||
case "toolbarseparator":
|
||||
case "toolbarbutton":
|
||||
size = overButtonBoxObject.width;
|
||||
coordValue = overButtonBoxObject.x;
|
||||
coordValue = overButtonBoxObject.clientX;
|
||||
clientCoordValue = aEvent.clientX;
|
||||
break;
|
||||
case "menuseparator":
|
||||
case "menu":
|
||||
case "menuitem":
|
||||
size = overButtonBoxObject.height;
|
||||
coordValue = overButtonBoxObject.y-overParentBoxObject.y;
|
||||
clientCoordValue = aEvent.clientY;
|
||||
coordValue = overButtonBoxObject.screenY;
|
||||
clientCoordValue = aEvent.screenY;
|
||||
break;
|
||||
default: return BookmarksUtils.DROP_ON;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче