diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-24 12:23:10 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-24 12:23:10 +0000 |
commit | 2fb134bac7d0ef2f204ee2fe61df690b234d6cde (patch) | |
tree | 02251c2a65a2e8d46dd2065f19550cc7ebb2e8a9 | |
parent | dea7683985150beb16168ae2ba927d0bf3563f97 (diff) | |
download | netsurf-2fb134bac7d0ef2f204ee2fe61df690b234d6cde.tar.gz netsurf-2fb134bac7d0ef2f204ee2fe61df690b234d6cde.tar.bz2 |
Fix mouse action offsets within scaled iframes.
svn path=/trunk/netsurf/; revision=12503
-rw-r--r-- | render/html_interaction.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |