From 0ebfff259fa4ec6aaf5e97a213d5c65c24052e96 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 3 Aug 2019 10:49:07 +0100 Subject: change browser_window_mouse_track to use unscaled coordinates --- content/handlers/html/html_interaction.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'content/handlers/html') diff --git a/content/handlers/html/html_interaction.c b/content/handlers/html/html_interaction.c index b6b9de89a..992796c25 100644 --- a/content/handlers/html/html_interaction.c +++ b/content/handlers/html/html_interaction.c @@ -849,10 +849,9 @@ void html_mouse_action(struct content *c, struct browser_window *bw, (x * scale) - pos_x, (y * scale) - pos_y); } else { - pos_x /= scale; - pos_y /= scale; browser_window_mouse_track(iframe, mouse, - x - pos_x, y - pos_y); + (x * scale) - pos_x, + (y * scale) - pos_y); } } else if (html_object_box) { -- cgit v1.2.3