Let HTML content handle object content srcoll request messages.

This commit is contained in:
Michael Drake 2012-08-13 23:35:23 +01:00
parent 8c12ecd5cd
commit 5810d131d5
1 changed files with 9 additions and 0 deletions

View File

@ -1229,6 +1229,15 @@ html_object_callback(hlcache_handle *object,
/* Don't care about favicons */ /* Don't care about favicons */
break; 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: default:
assert(0); assert(0);
} }