Changeset 596

Show
Ignore:
Timestamp:
07/08/08 14:12:45 (2 months ago)
Author:
tom
Message:

enforce bounds got chatty again in tweenlite branch, sorry

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/tom-tweenlite/lib/com/modestmaps/core/TileGrid.as

    r595 r596  
    10551055                        maxTy = br.row * provider.tileHeight; 
    10561056 
    1057                         trace("bounds of useful map area: ", minTx, maxTx, minTy, maxTy);                      
     1057                        //trace("bounds of useful map area: ", minTx, maxTx, minTy, maxTy);                    
    10581058                } 
    10591059                 
     
    10851085                         
    10861086                        if (rightX-leftX > maxTx-minTx) { 
    1087                                 trace("CENTERING X"); 
     1087                                //trace("CENTERING X"); 
    10881088                                _panX = -(minTx+maxTx)/2; 
    10891089                                touched = true; 
    10901090                        } 
    10911091                        else if (leftX < minTx) { 
    1092                                 trace("TOO LEFT"); 
     1092                                //trace("TOO LEFT"); 
    10931093                                _panX += leftX-minTx; 
    10941094                                touched = true; 
    10951095                        } 
    10961096                        else if (rightX > maxTx) { 
    1097                                 trace("TOO RIGHT"); 
     1097                                //trace("TOO RIGHT"); 
    10981098                                _panX += rightX-maxTx; 
    10991099                                touched = true; 
     
    11041104 
    11051105                        if (downY-upY > maxTy-minTy) { 
    1106                                 trace("CENTERING Y"); 
     1106                                //trace("CENTERING Y"); 
    11071107                                _panY = -(minTy+maxTy)/2; 
    11081108                                touched = true; 
    11091109                        } 
    11101110                        else if (upY < minTy) { 
    1111                                 trace("TOO HIGH"); 
     1111                                //trace("TOO HIGH"); 
    11121112                                _panY += upY-minTy; 
    11131113                                touched = true; 
    11141114                        } 
    11151115                        else if (downY > maxTy) { 
    1116                                 trace("TOO LOW"); 
     1116                                //trace("TOO LOW"); 
    11171117                                _panY += downY-maxTy; 
    11181118                                touched = true; 
    11191119                        }  
    11201120 
    1121                         trace("bounds of visible map area: ", leftX, rightX, upY, downY); 
     1121                        //trace("bounds of visible map area: ", leftX, rightX, upY, downY); 
    11221122 
    11231123                        return touched;