~onli/simdock/master

« back to all changes in this revision

Viewing changes to src/myFrame.cc

  • Committer: onli
  • Date: 2014-09-17 15:44:37 UTC
  • Revision ID: git-v1:4f807ee7350d398a4a92a07155e921a0e89ace0d
fix refresh issue & wrong drag detection

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
    disposed = false;
209
209
 
210
210
    dragging = false;
 
211
    moving = false;
211
212
    draggedID = -1;
212
213
    draggedStart = 0;
213
214
 
608
609
{
609
610
    simImage *img = this->getClickedIcon(event);
610
611
    if (img != None) {
611
 
        dragging = true;
612
612
        draggedID = positionToId(wxPoint (event.m_x, event.m_y), ImagesList, 0,
613
613
                            ImagesList->GetCount () - 1);
614
614
        draggedPos.x = event.m_x;
615
615
        draggedStart = draggedPos.x;
616
616
        draggedPos.y = event.m_y;
617
 
        return;
 
617
        dragging = true;
618
618
    }
619
 
 
620
619
}
621
620
 
622
621
simImage*
652
651
        Refresh (false);
653
652
        return;
654
653
    }
655
 
    
656
654
    dragging = false;
657
655
    moving = false;
658
656
    Refresh (false);