From 4856a4c1fba73c5ae20723cc1e5f93f5b0bfbefc Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 29 Nov 2011 17:47:29 +0000 Subject: Pass scroll wheel action into contents. Handle scrolling of box scrollbars and iframes. svn path=/trunk/netsurf/; revision=13200 --- content/content.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'content/content.c') diff --git a/content/content.c b/content/content.c index 28d18bcab..a4f36e2f6 100644 --- a/content/content.c +++ b/content/content.c @@ -733,6 +733,19 @@ void content_get_contextual_content(struct hlcache_handle *h, } +bool content_scroll_at_point(struct hlcache_handle *h, + int x, int y, int scrx, int scry) +{ + struct content *c = hlcache_handle_get_content(h); + assert(c != 0); + + if (c->handler->scroll_at_point != NULL) + return c->handler->scroll_at_point(c, x, y, scrx, scry); + + return false; +} + + void content_add_error(struct content *c, const char *token, unsigned int line) { -- cgit v1.2.3