nzbin / photoviewer

🖼️ A JS plugin to view images just like in Windows.
https://nzbin.github.io/photoviewer/
MIT License
356 stars 55 forks source link

zIndex not working #7

Closed kuoruan closed 5 years ago

kuoruan commented 5 years ago

Config of zIndex take no affects.

nzbin commented 5 years ago

@kuoruan can you give me a demo or describe it in more details

kuoruan commented 5 years ago

https://github.com/nzbin/photoviewer/blob/3923817dbcabf63561c1eae828c5cf6f859a520f/src/js/core.js#L223

This line set zIndex to PUBLIC_VARS['zIndex'] which is default zIndex 1090, not the zIndex in config.

nzbin commented 5 years ago

@kuoruan It's certainly a bug, I will fix it tonight.