diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-03-11 12:57:33 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-03-11 12:57:33 +0000 |
commit | 41e4928e25039119b97035640cf97b1949a129d4 (patch) | |
tree | a5867b83fcf36e2478e55400028a7898891db9cc /desktop/browser.c | |
parent | f3b515540e17c6742fa601057bf632763885d027 (diff) | |
download | netsurf-41e4928e25039119b97035640cf97b1949a129d4.tar.gz netsurf-41e4928e25039119b97035640cf97b1949a129d4.tar.bz2 |
Fix pointer shape and status bar messages for textareas and their scrollbars.
Diffstat (limited to 'desktop/browser.c')
-rw-r--r-- | desktop/browser.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/desktop/browser.c b/desktop/browser.c index 8d115e749..9d6786bd0 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -2618,8 +2618,10 @@ void browser_window_mouse_track(struct browser_window *bw, bw->drag_type == DRAGGING_NONE) || bw->drag_type == DRAGGING_SCR_X) { /* Start a scrollbar drag, or continue existing drag */ - status = scrollbar_mouse_action(bw->scroll_x, mouse, - scr_x, scr_y); + status = scrollbar_mouse_status_to_message( + scrollbar_mouse_action( + bw->scroll_x, mouse, + scr_x, scr_y)); pointer = BROWSER_POINTER_DEFAULT; if (status != NULL) @@ -2643,8 +2645,10 @@ void browser_window_mouse_track(struct browser_window *bw, bw->drag_type == DRAGGING_NONE) || bw->drag_type == DRAGGING_SCR_Y) { /* Start a scrollbar drag, or continue existing drag */ - status = scrollbar_mouse_action(bw->scroll_y, mouse, - scr_x, scr_y); + status = scrollbar_mouse_status_to_message( + scrollbar_mouse_action( + bw->scroll_y, mouse, + scr_x, scr_y)); pointer = BROWSER_POINTER_DEFAULT; if (status != NULL) @@ -2737,8 +2741,10 @@ void browser_window_mouse_click(struct browser_window *bw, if (scr_x > 0 && scr_x < browser_window_get_scrollbar_len(bw, true) && scr_y > 0 && scr_y < SCROLLBAR_WIDTH) { - status = scrollbar_mouse_action(bw->scroll_x, mouse, - scr_x, scr_y); + status = scrollbar_mouse_status_to_message( + scrollbar_mouse_action( + bw->scroll_x, mouse, + scr_x, scr_y)); pointer = BROWSER_POINTER_DEFAULT; if (status != NULL) @@ -2758,8 +2764,10 @@ void browser_window_mouse_click(struct browser_window *bw, if (scr_y > 0 && scr_y < browser_window_get_scrollbar_len(bw, false) && scr_x > 0 && scr_x < SCROLLBAR_WIDTH) { - status = scrollbar_mouse_action(bw->scroll_y, mouse, - scr_x, scr_y); + status = scrollbar_mouse_status_to_message( + scrollbar_mouse_action( + bw->scroll_y, mouse, + scr_x, scr_y)); pointer = BROWSER_POINTER_DEFAULT; if (status != NULL) |