/adei/ui

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/ui

« back to all changes in this revision

Viewing changes to includes/cropper/cropper.js

  • Committer: Suren A. Chilingaryan
  • Date: 2008-10-14 22:26:00 UTC
  • Revision ID: csa@dside.dyndns.org-20081014222600-4cwkermvefo7cjrq
Bringing back double click support

Show diffs side-by-side

added added

removed removed

Lines of Context:
1465
1465
                swStyle.height                  = params[7];
1466
1466
                swStyle.left                    = params[4];
1467
1467
                swStyle.width                   = params[6];
1468
 
           
 
1468
 
1469
1469
                var westStyle                   = this.west.style;
1470
1470
                westStyle.top                   = params[1];
1471
1471
                westStyle.height                = params[3];
1472
1472
                westStyle.width                 = params[0];
 
1473
 
1473
1474
                
1474
1475
                var buttonWidth = 0;
1475
1476
                
1771
1772
                        this.clear();
1772
1773
                    } else if (this.options.onClick) {
1773
1774
                        this.options.onClick(e, curpos);
1774
 
                        this.clear();
 
1775
                        /*
 
1776
                            This prevents global double clicks from occuring,
 
1777
                            the problem is somewhere drawarea, code:
 
1778
                                var swStyle                     = this.south_west.style;
 
1779
                                swStyle.top                     = params[5];
 
1780
                                swStyle.height                  = params[7];
 
1781
                            but there is no bug, probably just dragArea somehow
 
1782
                            modified, so event is not occured. Not sure.
 
1783
                            
 
1784
                            this.clear();
 
1785
                        */
1775
1786
                    }
1776
1787
        
1777
1788
        },