Changeset 495408
- Timestamp:
- 01/25/2012 10:54:11 PM (14 years ago)
- File:
-
- 1 edited
-
glass/trunk/glass.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
glass/trunk/glass.js
r493478 r495408 178 178 if (o.tagName.toLowerCase() == 'div' // I don't know why only these. 179 179 || o.tagName.toLowerCase() == 'p' // I voodooed these. :-( 180 || o.tagName.toLowerCase() == 'body' ) {180 || o.tagName.toLowerCase() == 'body' ) { 181 181 182 182 // Get the marginLeft, marginTop. … … 475 475 rescale = 0; 476 476 if (my.scaleX < minEnlarge) { 477 alert('scale up');478 477 rescale = minEnlarge; 479 478 } 480 479 else if (my.scaleX > maxEnlarge) { 481 alert('scale down from '+my.scaleX + ' to ' +maxEnlarge);482 480 rescale = maxEnlarge; 483 481 } … … 1092 1090 img.hires.preload.onload = glassRefresh; // Hide 'Loading.' layer. 1093 1091 1094 if (!document.body.glass) glassInsertGlass(); // Once.1095 1096 1092 if ('ontouchstart' in img) 1097 1093 img.ontouchstart = glassTouchStart; // iOS/Safari hook. 1098 1094 else 1099 1095 img.onmouseover = glassMouseStart; // Turn on the glass. 1096 1097 if (!document.body.glass) glassInsertGlass(); 1100 1098 1101 1099 glassAddSupMargins(img);
Note: See TracChangeset
for help on using the changeset viewer.