From de33b16b87cafa6751f4ceb9aa4582d05aecf72e Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 17 Oct 2004 21:11:29 +0000 Subject: [project @ 2004-10-17 21:11:29 by bursa] Scrollbar and dragging work. svn path=/import/netsurf/; revision=1315 --- desktop/browser.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'desktop/browser.h') diff --git a/desktop/browser.h b/desktop/browser.h index ddc7edc00..c77a5d13f 100644 --- a/desktop/browser.h +++ b/desktop/browser.h @@ -25,8 +25,7 @@ struct gui_window; struct history; /** Browser window data. */ -struct browser_window -{ +struct browser_window { /** Page currently displayed, or 0. Must have status READY or DONE. */ struct content *current_content; /** Page being loaded, or 0. */ @@ -51,9 +50,12 @@ struct browser_window /** Start time of fetching loading_content. */ clock_t time0; - /** Fragment identifier for current_content */ + /** Fragment identifier for current_content. */ char *frag_id; + /** Current drag status. */ + enum { DRAGGING_NONE, DRAGGING_VSCROLL, DRAGGING_HSCROLL } drag_type; + /** Box currently being scrolled, or 0. */ struct box *scrolling_box; /** Mouse position last scroll movement. */ -- cgit v1.2.3