Author: tlsa
Date: Fri Jun 24 07:23:10 2011
New Revision: 12503
URL:
http://source.netsurf-browser.org?rev=12503&view=rev
Log:
Fix mouse action offsets within scaled iframes.
Modified:
trunk/netsurf/render/html_interaction.c
Modified: trunk/netsurf/render/html_interaction.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/render/html_interaction.c...
==============================================================================
--- trunk/netsurf/render/html_interaction.c (original)
+++ trunk/netsurf/render/html_interaction.c Fri Jun 24 07:23:10 2011
@@ -471,6 +471,8 @@
} else if (iframe) {
int pos_x, pos_y;
browser_window_get_position(iframe, false, &pos_x, &pos_y);
+ pos_x /= bw-> scale;
+ pos_y /= bw-> scale;
if (mouse & BROWSER_MOUSE_CLICK_1 ||
mouse & BROWSER_MOUSE_CLICK_2) {