viewer: add zoom will-change
parent
324a4a4419
commit
45a9fcbfd2
|
@ -1105,10 +1105,12 @@ export default class Viewer extends Mixins(GlobalMixin) {
|
||||||
|
|
||||||
.pswp__zoom-wrap {
|
.pswp__zoom-wrap {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
will-change: transform;
|
||||||
}
|
}
|
||||||
|
|
||||||
img.pswp__img {
|
img.pswp__img {
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
|
will-change: width, height;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pswp__button {
|
.pswp__button {
|
||||||
|
|
Loading…
Reference in New Issue