From 2fb134bac7d0ef2f204ee2fe61df690b234d6cde Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 24 Jun 2011 12:23:10 +0000 Subject: Fix mouse action offsets within scaled iframes. svn path=/trunk/netsurf/; revision=12503 --- render/html_interaction.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'render') diff --git a/render/html_interaction.c b/render/html_interaction.c index 91f8cb39c..7373a25fd 100644 --- a/render/html_interaction.c +++ b/render/html_interaction.c @@ -471,6 +471,8 @@ void html_mouse_action(struct content *c, struct browser_window *bw, } 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) { -- cgit v1.2.3