mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
Various fixes
This commit is contained in:
@@ -43,7 +43,7 @@ export default class Paste extends Context {
|
||||
mousePosition[0] - left,
|
||||
mousePosition[1] - top,
|
||||
]
|
||||
node.addLocation(this.blueprint.compensateTranslation(locationOffset))
|
||||
node.addLocation(locationOffset)
|
||||
node.setSelected(true)
|
||||
node.snapToGrid()
|
||||
})
|
||||
|
||||
@@ -14,6 +14,9 @@ export default class Pointing extends Context {
|
||||
* @returns
|
||||
*/
|
||||
locationFromEvent(mouseEvent) {
|
||||
return Utility.convertLocation([mouseEvent.clientX, mouseEvent.clientY], this.movementSpace)
|
||||
return this.blueprint.compensateTranslation(
|
||||
Utility.convertLocation(
|
||||
[mouseEvent.clientX, mouseEvent.clientY],
|
||||
this.movementSpace))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user