diff options
author | François Revol <revol@free.fr> | 2013-03-09 20:44:25 +0100 |
---|---|---|
committer | François Revol <revol@free.fr> | 2013-03-09 20:44:25 +0100 |
commit | e31007f6a75c5f5292f3af7226b1a26a63699b56 (patch) | |
tree | cfce8c525c7c6568aeb39145ae612772ee9086f4 /render/html_interaction.c | |
parent | 20e4bdadafc2741c9e46871541df2368806b6fbb (diff) | |
download | netsurf-e31007f6a75c5f5292f3af7226b1a26a63699b56.tar.gz netsurf-e31007f6a75c5f5292f3af7226b1a26a63699b56.tar.bz2 |
C89
Diffstat (limited to 'render/html_interaction.c')
-rw-r--r-- | render/html_interaction.c | 7 |
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; |