summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-08-03 11:58:44 +0100
committerVincent Sanders <vince@kyllikki.org>2019-08-03 14:29:06 +0100
commitd4c01894c21559cd4199c0f15b9e8b7bec4b692c (patch)
tree99a9dad1873b37a22ef344fd002484feefd93c70 /content
parent0ebfff259fa4ec6aaf5e97a213d5c65c24052e96 (diff)
downloadnetsurf-d4c01894c21559cd4199c0f15b9e8b7bec4b692c.tar.gz
netsurf-d4c01894c21559cd4199c0f15b9e8b7bec4b692c.tar.bz2
change browser_window_get_features to use unscaled coordinates
Diffstat (limited to 'content')
-rw-r--r--content/handlers/html/html.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/content/handlers/html/html.c b/content/handlers/html/html.c
index a27ebd79a..1bbb4c699 100644
--- a/content/handlers/html/html.c
+++ b/content/handlers/html/html.c
@@ -1925,8 +1925,11 @@ html_get_contextual_content(struct content *c, int x, int y,
}
if (box->iframe) {
- browser_window_get_features(box->iframe,
- x - box_x, y - box_y, data);
+ browser_window_get_features(
+ box->iframe,
+ (x - box_x) * browser_window_get_scale(box->iframe),
+ (y - box_y) * browser_window_get_scale(box->iframe),
+ data);
}
if (box->object)
@@ -2001,8 +2004,12 @@ html_scroll_at_point(struct content *c, int x, int y, int scrx, int scry)
continue;
/* Pass into iframe */
- if (box->iframe && browser_window_scroll_at_point(box->iframe,
- x - box_x, y - box_y, scrx, scry) == true)
+ if (box->iframe &&
+ browser_window_scroll_at_point(
+ box->iframe,
+ (x - box_x) * browser_window_get_scale(box->iframe),
+ (y - box_y) * browser_window_get_scale(box->iframe),
+ scrx, scry) == true)
return true;
/* Pass into textarea widget */