summaryrefslogtreecommitdiff
path: root/render/html.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-08-13 23:35:23 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-08-13 23:35:23 +0100
commit5810d131d5b28e448b8f9c707942f336f6113f5e (patch)
treed2bbd9548a61d1efbb1f6036833d72adf524a160 /render/html.c
parent8c12ecd5cd167c298d8c8097cc2d4b7a988db499 (diff)
downloadnetsurf-5810d131d5b28e448b8f9c707942f336f6113f5e.tar.gz
netsurf-5810d131d5b28e448b8f9c707942f336f6113f5e.tar.bz2
Let HTML content handle object content srcoll request messages.
Diffstat (limited to 'render/html.c')
-rw-r--r--render/html.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/render/html.c b/render/html.c
index 3ee85b419..00992967e 100644
--- a/render/html.c
+++ b/render/html.c
@@ -1229,6 +1229,15 @@ html_object_callback(hlcache_handle *object,
/* Don't care about favicons */
break;
+ case CONTENT_MSG_SCROLL:
+ if (box->scroll_x != NULL)
+ scrollbar_set(box->scroll_x, event->data.scroll.x0,
+ false);
+ if (box->scroll_y != NULL)
+ scrollbar_set(box->scroll_y, event->data.scroll.y0,
+ false);
+ break;
+
default:
assert(0);
}