diff --git a/layout/forms/nsListControlFrame.cpp b/layout/forms/nsListControlFrame.cpp index 96c2aec630fb..0cc7af5648de 100644 --- a/layout/forms/nsListControlFrame.cpp +++ b/layout/forms/nsListControlFrame.cpp @@ -2525,7 +2525,8 @@ nsListControlFrame::UpdateInListState(nsIDOMEvent* aEvent) return; nsPoint pt = nsLayoutUtils::GetDOMEventCoordinatesRelativeTo(aEvent, this); - if (pt.y >= GetScrollableView()->View()->GetBounds().y) { + nsRect borderInnerEdge = GetScrollableView()->View()->GetBounds(); + if (pt.y >= borderInnerEdge.y && pt.y < borderInnerEdge.YMost()) { mItemSelectionStarted = PR_TRUE; } }