mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-20 03:18:06 +08:00
Polishing: standardize binding JS resize event (fixes non-integer AA rendering); remove "X" to delete; cleanup
This commit is contained in:
@@ -138,13 +138,6 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
window.addEventListener("resize", this.handleResize);
|
||||
this.handleResize();
|
||||
},
|
||||
beforeUnmount() {
|
||||
window.removeEventListener("resize", this.handleResize);
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
rulerLength: 0,
|
||||
|
||||
Reference in New Issue
Block a user