mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 01:16:10 +02:00
🎉 Improve viewer performance degradation because of fixed position
This commit is contained in:
parent
f736ec813e
commit
108cdcecbb
7 changed files with 91 additions and 85 deletions
|
@ -171,6 +171,20 @@
|
|||
}
|
||||
|
||||
.viewport-container {
|
||||
clip-path: inset(0 0 0 0);
|
||||
grid-column: 1 / 1;
|
||||
grid-row: 1 / 1;
|
||||
|
||||
.not-fixed {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.fixed {
|
||||
position: fixed;
|
||||
pointer-events: none;
|
||||
|
||||
.frame-children g {
|
||||
pointer-events: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue