OpenLayers OpenLayers

Ticket #1465: perf.patch

File perf.patch, 0.8 kB (added by euzuro, 10 months ago)
  • lib/OpenLayers/Tile/Image.js

    old new  
    394394        this.frame.style.display = ''; 
    395395        // Force a reflow on gecko based browsers to actually show the element 
    396396        // before continuing execution. 
    397         if (navigator.userAgent.toLowerCase().indexOf("gecko") != -1) {  
    398             this.frame.scrollLeft = this.frame.scrollLeft;  
    399         }  
     397        if (OpenLayers.Util.indexOf(this.layer.SUPPORTED_TRANSITIONS,  
     398                this.layer.transitionEffect) != -1) { 
     399            if (navigator.userAgent.toLowerCase().indexOf("gecko") != -1) {  
     400                this.frame.scrollLeft = this.frame.scrollLeft;  
     401            }  
     402        } 
    400403    }, 
    401404     
    402405    /**