Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/11/19 12:10:08 (3 years ago)
Author:
abeham
Message:

#3010: improved double click handling in checked collection views

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Core.Views/3.3/CheckedItemCollectionView.cs

    r17009 r17126  
    8484      if (doubleClick) {
    8585        e.NewValue = e.CurrentValue;
    86         doubleClick = false;
    8786      } else {
    8887        bool check = e.NewValue == CheckState.Checked;
     
    104103    }
    105104    protected void itemsListView_MouseDown(object sender, MouseEventArgs e) {
    106       if (e.Clicks > 1)
    107         doubleClick = true;
     105      doubleClick = e.Clicks > 1;
    108106    }
    109107    #endregion
Note: See TracChangeset for help on using the changeset viewer.