summaryrefslogtreecommitdiff
path: root/content/handlers/html/html_interaction.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/handlers/html/html_interaction.c')
-rw-r--r--content/handlers/html/html_interaction.c5
1 files changed, 2 insertions, 3 deletions
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) {