Skip to content
Snippets Groups Projects
Commit 310c9fee authored by Rider Linden's avatar Rider Linden
Browse files

Merge

parents 059925ea 66848f7a
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,7 @@ MediaPluginBase(host_send_func, host_user_data)
//
MediaPluginCEF::~MediaPluginCEF()
{
mLLCEFLib->reset();
mLLCEFLib->requestExit();
}
////////////////////////////////////////////////////////////////////////////////
......@@ -532,11 +532,12 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
}
else if (message_name == "scroll_event")
{
S32 x = message_in.getValueS32("x");
S32 y = message_in.getValueS32("y");
const int scaling_factor = 40;
y *= -scaling_factor;
mLLCEFLib->mouseWheel(y);
mLLCEFLib->mouseWheel(x, y);
}
else if (message_name == "text_event")
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment