mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
Fixed scrollbar scrolling event dispatch.
Wasn't scrolling because OnScroll was not declared virtual in nsWindow.h.
This commit is contained in:
parent
dd5d333ce3
commit
233c9cb96e
@ -1339,6 +1339,7 @@ PRBool nsWindow::DispatchFocus(nsGUIEvent &aEvent)
|
||||
|
||||
PRBool nsWindow::OnScroll(nsScrollbarEvent & aEvent, PRUint32 cPos)
|
||||
{
|
||||
printf("IN NSWINDOW ON SCROLL\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -134,7 +134,7 @@ public:
|
||||
void OnDestroy();
|
||||
PRBool OnKey(PRUint32 aEventType, PRUint32 aKeyCode, nsKeyEvent* aEvent);
|
||||
PRBool DispatchFocus(nsGUIEvent &aEvent);
|
||||
PRBool OnScroll(nsScrollbarEvent & aEvent, PRUint32 cPos);
|
||||
virtual PRBool OnScroll(nsScrollbarEvent & aEvent, PRUint32 cPos);
|
||||
void SetIgnoreResize(PRBool aIgnore);
|
||||
PRBool IgnoreResize();
|
||||
PRUint32 GetYCoord(PRUint32 aNewY);
|
||||
|
@ -454,7 +454,8 @@ void nsXtWidget_RadioButton_DisArmCallback(Widget w, XtPointer p, XtPointer call
|
||||
void nsXtWidget_Scrollbar_Callback(Widget w, XtPointer p, XtPointer call_data)
|
||||
{
|
||||
nsWindow * widgetWindow = (nsWindow *) p ;
|
||||
if (DBG) fprintf(stderr, "***************** nsXtWidget_Scrollbar_Callback\n");
|
||||
// if (DBG) fprintf(stderr, "***************** nsXtWidget_Scrollbar_Callback\n");
|
||||
printf("***************** nsXtWidget_Scrollbar_Callback\n");
|
||||
|
||||
nsScrollbarEvent sevent;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user