elevateweb / elevatezoom

1.02k stars 493 forks source link

Bug when image in zoomLens not scroll #170

Open denikod opened 6 years ago

denikod commented 6 years ago

Fix bug when width or height of img tag larger than real image size: just comment out next lines on line #993: https://github.com/elevateweb/elevatezoom/blob/119b1e6ffc927b1eb72a0fa306398146851a6c34/jquery.elevatezoom.js#L993-L1002 /*if(self.zoomLock == 1){ //overrides for images not zoomable if(self.widthRatio <= 1){

                        self.windowLeftPos = 0;
                    }
                    if(self.heightRatio <= 1){ 
                        self.windowTopPos = 0;
                    }
                }*/