diff options
Diffstat (limited to 'content/handlers/html/html_interaction.c')
-rw-r--r-- | content/handlers/html/html_interaction.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/content/handlers/html/html_interaction.c b/content/handlers/html/html_interaction.c index 985b325e2..b6b9de89a 100644 --- a/content/handlers/html/html_interaction.c +++ b/content/handlers/html/html_interaction.c @@ -843,14 +843,14 @@ void html_mouse_action(struct content *c, struct browser_window *bw, browser_window_get_position(iframe, false, &pos_x, &pos_y); - pos_x /= scale; - pos_y /= scale; - if (mouse & BROWSER_MOUSE_CLICK_1 || - mouse & BROWSER_MOUSE_CLICK_2) { + mouse & BROWSER_MOUSE_CLICK_2) { browser_window_mouse_click(iframe, mouse, - x - pos_x, y - pos_y); + (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); } |