mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-27 10:44:43 +08:00
Colors wip
This commit is contained in:
@@ -11,8 +11,8 @@ import MouseMoveDraggable from "../input/mouse/MouseMoveDraggable"
|
||||
*/
|
||||
export default class IDraggableControlTemplate extends IDraggableTemplate {
|
||||
|
||||
/** @param {[Number, Number]} param0 */
|
||||
#locationChangeCallback = ([x, y], ..._) => { }
|
||||
/** @type {(x: Number, y: Number) => void} */
|
||||
#locationChangeCallback
|
||||
get locationChangeCallback() {
|
||||
return this.#locationChangeCallback
|
||||
}
|
||||
@@ -43,7 +43,7 @@ export default class IDraggableControlTemplate extends IDraggableTemplate {
|
||||
|
||||
/** @param {[Number, Number]} param0 */
|
||||
adjustLocation([x, y]) {
|
||||
this.#locationChangeCallback([x, y])
|
||||
this.locationChangeCallback?.(x, y)
|
||||
return [x, y]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user