mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-18 20:34:54 +08:00
Mergin better performance branch
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
// @ts-check
|
||||
|
||||
import IInput from "../IInput"
|
||||
import Utility from "../../Utility"
|
||||
|
||||
@@ -22,11 +20,10 @@ export default class IPointing extends IInput {
|
||||
* @param {MouseEvent} mouseEvent
|
||||
*/
|
||||
locationFromEvent(mouseEvent) {
|
||||
return this.blueprint.compensateTranslation(
|
||||
Utility.convertLocation(
|
||||
[mouseEvent.clientX, mouseEvent.clientY],
|
||||
this.movementSpace
|
||||
)
|
||||
const location = Utility.convertLocation(
|
||||
[mouseEvent.clientX, mouseEvent.clientY],
|
||||
this.movementSpace
|
||||
)
|
||||
return this.blueprint.compensateTranslation(location)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user