From 2f7b6062026eb7b227e22580df6aa8dfb7234bf4 Mon Sep 17 00:00:00 2001 From: AndreyL ProductEngine Date: Sat, 14 Sep 2019 05:14:24 +0300 Subject: Backed out changeset: 8e228364f324 --- indra/media_plugins/cef/media_plugin_cef.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'indra/media_plugins') diff --git a/indra/media_plugins/cef/media_plugin_cef.cpp b/indra/media_plugins/cef/media_plugin_cef.cpp index 2f0501d018..eead92fd8e 100644 --- a/indra/media_plugins/cef/media_plugin_cef.cpp +++ b/indra/media_plugins/cef/media_plugin_cef.cpp @@ -657,13 +657,10 @@ void MediaPluginCEF::receiveMessage(const char* message_string) { S32 x = message_in.getValueS32("x"); S32 y = message_in.getValueS32("y"); - S32 delta_x = message_in.getValueS32("clicks_x"); - S32 delta_y = message_in.getValueS32("clicks_y"); const int scaling_factor = 40; - delta_x *= -scaling_factor; - delta_y *= -scaling_factor; + y *= -scaling_factor; - mCEFLib->mouseWheel(x, y, delta_x, delta_y); + mCEFLib->mouseWheel(x, y); } else if (message_name == "text_event") { -- cgit v1.2.3