mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-03 09:44:24 +03:00
Fix mouse action offsets within scaled iframes.
svn path=/trunk/netsurf/; revision=12503
This commit is contained in:
parent
dea7683985
commit
2fb134bac7
@ -471,6 +471,8 @@ void html_mouse_action(struct content *c, struct browser_window *bw,
|
||||
} else if (iframe) {
|
||||
int pos_x, pos_y;
|
||||
browser_window_get_position(iframe, false, &pos_x, &pos_y);
|
||||
pos_x /= bw-> scale;
|
||||
pos_y /= bw-> scale;
|
||||
|
||||
if (mouse & BROWSER_MOUSE_CLICK_1 ||
|
||||
mouse & BROWSER_MOUSE_CLICK_2) {
|
||||
|
Loading…
Reference in New Issue
Block a user