shrunken tab bar couldn't be resized by drag and drop because the tab bar was unexpectedly expanded near the resizer.
This commit is contained in:
parent
e3b5a236d8
commit
e0d949b99e
@ -384,33 +384,34 @@ AutoHideBrowser.prototype = {
|
||||
|
||||
var sensitiveArea = this.sensitiveArea;
|
||||
/* For resizing of shrunken tab bar and clicking closeboxes,
|
||||
|
||||
we have to shrink sensitive area a little. */
|
||||
if (this.shrunken) sensitiveArea -= 20;
|
||||
if (this.shrunken) sensitiveArea = -24;
|
||||
|
||||
if (
|
||||
pos == 'left' ?
|
||||
(aEvent.screenX <= box.screenX) :
|
||||
(aEvent.screenX > box.screenX + sensitiveArea) :
|
||||
pos == 'right' ?
|
||||
(aEvent.screenX >= box.screenX + box.width) :
|
||||
(aEvent.screenX < box.screenX + box.width - sensitiveArea) :
|
||||
pos == 'bottom' ?
|
||||
(aEvent.screenY >= box.screenY + box.height) :
|
||||
(aEvent.screenY <= box.screenY)
|
||||
)
|
||||
return this.MOUSE_POSITION_INSIDE;
|
||||
|
||||
if (
|
||||
pos == 'left' ?
|
||||
(aEvent.screenX <= box.screenX + sensitiveArea) :
|
||||
pos == 'right' ?
|
||||
(aEvent.screenX >= box.screenX + box.width - sensitiveArea) :
|
||||
pos == 'bottom' ?
|
||||
(aEvent.screenY >= box.screenY + box.height - sensitiveArea) :
|
||||
(aEvent.screenY <= box.screenY + sensitiveArea)
|
||||
)
|
||||
return this.MOUSE_POSITION_NEAR;
|
||||
|
||||
(aEvent.screenY < box.screenY + box.height - sensitiveArea) :
|
||||
(aEvent.screenY > box.screenY + sensitiveArea)
|
||||
) {
|
||||
return this.MOUSE_POSITION_OUTSIDE;
|
||||
}
|
||||
|
||||
if (
|
||||
pos == 'left' ?
|
||||
(aEvent.screenX <= box.screenX - sensitiveArea) :
|
||||
pos == 'right' ?
|
||||
(aEvent.screenX >= box.screenX + box.width + sensitiveArea) :
|
||||
pos == 'bottom' ?
|
||||
(aEvent.screenY >= box.screenY + box.height + sensitiveArea) :
|
||||
(aEvent.screenY <= box.screenY - sensitiveArea)
|
||||
) {
|
||||
return this.MOUSE_POSITION_INSIDE;
|
||||
}
|
||||
|
||||
return this.MOUSE_POSITION_NEAR;
|
||||
},
|
||||
MOUSE_POSITION_UNKNOWN : 0,
|
||||
MOUSE_POSITION_OUTSIDE : (1 << 0),
|
||||
|
Loading…
Reference in New Issue
Block a user