summaryrefslogtreecommitdiff
path: root/render/html_interaction.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/html_interaction.c')
-rw-r--r--render/html_interaction.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/render/html_interaction.c b/render/html_interaction.c
index 805932e31..aa6fc1126 100644
--- a/render/html_interaction.c
+++ b/render/html_interaction.c
@@ -315,6 +315,9 @@ void html_mouse_action(struct content *c, struct browser_window *bw,
if (html->drag_type == HTML_DRAG_SELECTION) {
/* Selection drag */
+ struct box *box;
+ int dir = -1;
+ int dx, dy;
if (!mouse) {
/* End of selection drag */
@@ -335,10 +338,6 @@ void html_mouse_action(struct content *c, struct browser_window *bw,
return;
}
- struct box *box;
- int dir = -1;
- int dx, dy;
-
if (selection_dragging_start(&html->sel))
dir = 1;