lokesh / lightbox2

THE original Lightbox script (v2).
http://lokeshdhakar.com/projects/lightbox2/
MIT License
6.2k stars 1.77k forks source link

IE11 issue #668

Open kevinlo123 opened 5 years ago

kevinlo123 commented 5 years ago

There is a bug when using this package on IE11. When anchor element is clicked the screen jumps to the top of the page. This issue was found using browserstack to test website on IE11 windows. I also tested on http://lokeshdhakar.com/projects/lightbox2/#examples to make sure it just wasnt the website im working on and same issue persists.

stratosilver commented 4 years ago

I have the same issue, is there a fix for that? So in IE11, when I click on any thumbnail, the page scroll to the top. I tryed this: lightbox.option({ disableScrolling:true }) But it does not resolve the issue Regards Ed

kevinlo123 commented 4 years ago

@stratosilver Sorry Ed, this bug had no resolution and i opted to using another library.

StefanoDiLegami commented 4 years ago

Removing self.$overlay.focus(); Line: 404

from lightbox.js fixed that problem for me.

kevinlo123 commented 4 years ago

Removing self.$overlay.focus(); Line: 404

from lightbox.js fixed that problem for me.

I tried this it didnt work. I may have did something wrong unsure. @stratosilver Eddy please try & let us know if this worked.

stratosilver commented 4 years ago

Sorry I can't test is, switched to an other lib Thanks for your help anyway StefanoDiLegami

kevinlo123 commented 4 years ago

ok this issue will remain open @stratosilver @StefanoDiLegami