Show
Ignore:
Timestamp:
02/02/06 04:21:09 (4 years ago)
Author:
mischa
Message:

Better than name setConstrain

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • jslibtrunk/ImageRegionSelect/image-region-select.js

    r47 r48  
    7979        this.height = h; 
    8080 
    81         this.constrain = false; 
     81        this.keepSquareAspect = false; 
    8282 
    8383        var containerDiv = this.containerDiv = document.createElement("div"); 
     
    262262    }, 
    263263 
    264     setConstrain: function (constrain) { 
    265       this.constrain = constrain; 
     264    keepSquare: function (keepSquareAspect) { 
     265      this.keepSquareAspect = keepSquareAspect; 
    266266    }, 
    267267 
     
    299299        var mpos = self.relPos(emove); 
    300300 
    301         var isShift = emove.shiftKey || self.constrain; 
     301        var isShift = emove.shiftKey || self.keepSquareAspect; 
    302302        //log(trackerPlane + ":  mouse move"); 
    303303