Bug 490196, r+sr=roc
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Thu, 02 Jul 2009 17:47:00 +0300
changeset 29963 8a3cfb3a4c216e5da6b515e23a2aba80b36b538b
parent 29962 1c6ec6110a0f0479e962348d167e4a322f4370fe
child 29964 b95e64e9431e35365bcc82c9695ee89e95c5d6ce
push id7846
push useropettay@mozilla.com
push dateThu, 02 Jul 2009 14:48:14 +0000
treeherdermozilla-central@8a3cfb3a4c21 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs490196
milestone1.9.2a1pre
Bug 490196, r+sr=roc
layout/xul/base/src/nsScrollBoxFrame.cpp
--- a/layout/xul/base/src/nsScrollBoxFrame.cpp
+++ b/layout/xul/base/src/nsScrollBoxFrame.cpp
@@ -139,19 +139,19 @@ nsAutoRepeatBoxFrame::HandleEvent(nsPres
 }
 
 NS_IMETHODIMP
 nsAutoRepeatBoxFrame::HandlePress(nsPresContext* aPresContext, 
                                   nsGUIEvent* aEvent,
                                   nsEventStatus* aEventStatus)
 {
   if (!IsActivatedOnHover()) {
+    StartRepeat();
     mTrustedEvent = NS_IS_TRUSTED_EVENT(aEvent);
     DoMouseClick(aEvent, mTrustedEvent);
-    StartRepeat();
   }
 
   return NS_OK;
 }
 
 NS_IMETHODIMP 
 nsAutoRepeatBoxFrame::HandleRelease(nsPresContext* aPresContext, 
                                     nsGUIEvent* aEvent,