mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-19 04:55:57 +08:00
Mergin better performance branch
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
// @ts-check
|
||||
|
||||
import IMouseClickDrag from "./IMouseClickDrag"
|
||||
|
||||
export default class Select extends IMouseClickDrag {
|
||||
@@ -10,16 +8,16 @@ export default class Select extends IMouseClickDrag {
|
||||
}
|
||||
|
||||
startDrag() {
|
||||
this.selectorElement.startSelecting(this.clickedPosition)
|
||||
this.selectorElement.beginSelect(this.clickedPosition)
|
||||
}
|
||||
|
||||
dragTo(location, movement) {
|
||||
this.selectorElement.doSelecting(location)
|
||||
this.selectorElement.selectTo(location)
|
||||
}
|
||||
|
||||
endDrag() {
|
||||
if (this.started) {
|
||||
this.selectorElement.finishSelecting()
|
||||
this.selectorElement.endSelect()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user