diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-08-03 10:49:07 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-08-03 14:29:05 +0100 |
commit | 0ebfff259fa4ec6aaf5e97a213d5c65c24052e96 (patch) | |
tree | fbbd6f3398730bb9d05c31e56c01aed0318563c1 /content | |
parent | 0a8ed41a1ad470bb62c908d0dc6272c1c541a1f2 (diff) | |
download | netsurf-0ebfff259fa4ec6aaf5e97a213d5c65c24052e96.tar.gz netsurf-0ebfff259fa4ec6aaf5e97a213d5c65c24052e96.tar.bz2 |
change browser_window_mouse_track to use unscaled coordinates
Diffstat (limited to 'content')
-rw-r--r-- | content/handlers/html/html_interaction.c | 5 |
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) { |