On Wed, Aug 17, 2005 at 06:11:23PM +0100, Malcolm Parsons wrote:
> Package: bins
> Version: 1.1.28-1
> Severity: normal
> Tags: patch
> 
> The doc says that javaScriptPreloadImage preloads the next image of the
> same size:
> 
> javaScriptPreloadImage
>     If  set  to  1,  add  some javascript code in image pages to
>     preload the next image of the same size when current one  is
>     loaded, to speed up the album browsing.
> 
> It actually preloads the next image at maximum size, slowing down album
> browsing.

Right, thanks for the correction. The following patch has been applied
upstream and will be available in 1.1.29 (the variable name was wrong). 

*** 3065,3070 ****
--- 3065,3073 ----
              #fileparse($imagesToDisplay[$nextImageNum], '\.[^.]+\z');
  
              my $sizeLink = $imageData[$nextImageNum]->{'maxSize'};
+             if ($sizeLink >= $j ) {
+                 $sizeLink = $j;
+             }
  
              $imageData[$i]{$j}{'nextHTML'} =
                  getHTMLImagePageLink($imageData[$nextImageNum], $j,

-- 
Jérôme SAUTRET (Jerome @ SAUTRET.org)           http://SAUTRET.org
Key 0x95D463F3 fingerprint 3B69 3B60 4D32 B8DF 2BF3 8035 5036 D41A 95D4 63F3

Reply via email to