X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fawindowgui.C;h=384090a2e63d39c96adc7b8c4037786b63830090;hp=13e94b9570c4bff7cd57f09478278fe2d199acd7;hb=ee1879b1a1850e1d4e19c034d4a9c5459274bbb6;hpb=c98ecabef4f08c66ad7dbd3004cf7995e012dc3e diff --git a/cinelerra-5.1/cinelerra/awindowgui.C b/cinelerra-5.1/cinelerra/awindowgui.C index 13e94b95..384090a2 100644 --- a/cinelerra-5.1/cinelerra/awindowgui.C +++ b/cinelerra-5.1/cinelerra/awindowgui.C @@ -357,7 +357,7 @@ int AssetViewPopup::button_press_event() MWindow *mwindow = picon->mwindow; EDL *edl = mwindow->edl; dragging = 0; - if( y < bar_h ) { + if( y < get_h()/2 ) { Indexable *idxbl = picon->indexable ? picon->indexable : picon->edl ? picon->edl : 0; @@ -402,7 +402,7 @@ int AssetViewPopup::button_press_event() vwindow->update_position(CHANGE_NONE, 0, 1, 0); return 1; } - if( y >= get_h()-bar_h ) { + else { dragging = 1; if( !ctrl_down() && !shift_down() ) return cursor_motion_event(); @@ -454,7 +454,9 @@ int AssetViewPopup::cursor_motion_event() { if( !is_event_win() ) return 0; AssetVIconThread *avt = (AssetVIconThread *)vt; - if( !avt->vicon || draw_mode != ASSET_VIEW_MEDIA_MAP ) return 0; + if( !avt->vicon || + ( draw_mode != ASSET_VIEW_FULL && + draw_mode != ASSET_VIEW_MEDIA_MAP ) ) return 0; if( !get_button_down() || get_buttonpress() != LEFT_BUTTON || ctrl_down() || alt_down() || shift_down() ) return 0;