mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 04:05:32 +00:00
Bug 389659: Scrollbar dragging broken when using fullZoom != 1.0. r+sr=roc, a19=dbaron
This commit is contained in:
parent
89e63cffbe
commit
08e9b1075e
@ -856,18 +856,9 @@ nsSliderFrame::MouseDown(nsIDOMEvent* aMouseEvent)
|
||||
}
|
||||
}
|
||||
|
||||
PRInt32 clientPosPx;
|
||||
nsIntRect screenRect = GetScreenRect();
|
||||
nscoord pos;
|
||||
if (isHorizontal) {
|
||||
mouseEvent->GetScreenX(&clientPosPx);
|
||||
pos = nsPresContext::CSSPixelsToAppUnits(clientPosPx) -
|
||||
PresContext()->DevPixelsToAppUnits(screenRect.x);
|
||||
} else {
|
||||
mouseEvent->GetScreenY(&clientPosPx);
|
||||
pos = nsPresContext::CSSPixelsToAppUnits(clientPosPx) -
|
||||
PresContext()->DevPixelsToAppUnits(screenRect.y);
|
||||
}
|
||||
nsPoint pt = nsLayoutUtils::GetDOMEventCoordinatesRelativeTo(mouseEvent,
|
||||
this);
|
||||
nscoord pos = isHorizontal ? pt.x : pt.y;
|
||||
|
||||
// If shift click or middle button, first
|
||||
// place the middle of the slider thumb under the click
|
||||
|
Loading…
Reference in New Issue
Block a user