Edge scroll, minor refactoring

This commit is contained in:
barsdeveloper
2023-02-08 22:15:37 +01:00
parent cb98b85084
commit 319f5af77f
20 changed files with 175 additions and 60 deletions

View File

@@ -1,7 +1,7 @@
import ColorPickerWindowTemplate from "../template/ColorPickerWindowTemplate"
import ColorPickerWindowTemplate from "../template/window/ColorPickerWindowTemplate"
import Configuration from "../Configuration"
import IDraggableElement from "./IDraggableElement"
import WindowTemplate from "../template/WindowTemplate"
import WindowTemplate from "../template/window/WindowTemplate"
/** @typedef {typeof WindowElement} WindowElementConstructor */
@@ -43,10 +43,10 @@ export default class WindowElement extends IDraggableElement {
super.initialize(entity, template)
}
setup() {
super.setup()
this.locationX = this.blueprint.mousePosition[0]
this.locationY = this.blueprint.mousePosition[1]
computeSizes() {
const bounding = this.getBoundingClientRect()
this.sizeX = bounding.width
this.sizeY = bounding.height
}
cleanup() {