diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-11-11 23:17:00 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-11-11 23:17:00 +0000 |
commit | 6641b082f8b003dbc887003776c060f3d53c95c7 (patch) | |
tree | 786ec293382178244fb98d044f290bae616ce593 /amiga | |
parent | 967d22afe5aef519e3fcc858747705895e0a3e6b (diff) | |
download | netsurf-6641b082f8b003dbc887003776c060f3d53c95c7.tar.gz netsurf-6641b082f8b003dbc887003776c060f3d53c95c7.tar.bz2 |
Fix the display of the drag save icon
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/gui.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 37f054776..293379283 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -1365,24 +1365,24 @@ void ami_handle_msg(void) width=bbox->Width; height=bbox->Height; - if(gwin->mouse_state & BROWSER_MOUSE_DRAG_ON && - ((gwin->bw->drag_type == DRAGGING_SELECTION) || - ami_autoscroll == TRUE)) + if(gwin->mouse_state & BROWSER_MOUSE_DRAG_ON) { ami_drag_icon_move(); - if((gwin->win->MouseX < bbox->Left) && - ((gwin->win->MouseX - bbox->Left) > -AMI_DRAG_THRESHOLD)) - drag_x_move = gwin->win->MouseX - bbox->Left; - if((gwin->win->MouseX > (bbox->Left + bbox->Width)) && - ((gwin->win->MouseX - (bbox->Left + bbox->Width)) < AMI_DRAG_THRESHOLD)) - drag_x_move = gwin->win->MouseX - (bbox->Left + bbox->Width); - if((gwin->win->MouseY < bbox->Top) && - ((gwin->win->MouseY - bbox->Top) > -AMI_DRAG_THRESHOLD)) - drag_y_move = gwin->win->MouseY - bbox->Top; - if((gwin->win->MouseY > (bbox->Top + bbox->Height)) && - ((gwin->win->MouseY - (bbox->Top + bbox->Height)) < AMI_DRAG_THRESHOLD)) - drag_y_move = gwin->win->MouseY - (bbox->Top + bbox->Height); + if(ami_autoscroll == TRUE) { + if((gwin->win->MouseX < bbox->Left) && + ((gwin->win->MouseX - bbox->Left) > -AMI_DRAG_THRESHOLD)) + drag_x_move = gwin->win->MouseX - bbox->Left; + if((gwin->win->MouseX > (bbox->Left + bbox->Width)) && + ((gwin->win->MouseX - (bbox->Left + bbox->Width)) < AMI_DRAG_THRESHOLD)) + drag_x_move = gwin->win->MouseX - (bbox->Left + bbox->Width); + if((gwin->win->MouseY < bbox->Top) && + ((gwin->win->MouseY - bbox->Top) > -AMI_DRAG_THRESHOLD)) + drag_y_move = gwin->win->MouseY - bbox->Top; + if((gwin->win->MouseY > (bbox->Top + bbox->Height)) && + ((gwin->win->MouseY - (bbox->Top + bbox->Height)) < AMI_DRAG_THRESHOLD)) + drag_y_move = gwin->win->MouseY - (bbox->Top + bbox->Height); + } } if((x>=xs) && (y>=ys) && (x<width+xs) && (y<height+ys)) |