editor: don't use reserved event name for uidragresize resize
This commit is contained in:
parent
1f30407ca5
commit
2335328c4e
2 changed files with 2 additions and 2 deletions
|
|
@ -84,7 +84,7 @@ class Editor {
|
|||
dY = top - e.initTop
|
||||
this.moveWidget(dX, dY)
|
||||
})
|
||||
this.widgetDragResize.on('resize', (e)=>{
|
||||
this.widgetDragResize.on('drag-resize', (e)=>{
|
||||
var width = Math.round(e.width / GRIDWIDTH) * GRIDWIDTH,
|
||||
height = Math.round(e.height / GRIDWIDTH) * GRIDWIDTH
|
||||
var dX = width - e.initWidth,
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ class UiDragResize extends UiWidget {
|
|||
this.container.classList.remove('dragging')
|
||||
this.left = Math.max(0, this.left)
|
||||
this.top = Math.max(0, this.top)
|
||||
this.trigger(this.dragging.indexOf('left') > -1 ? 'move' : 'resize', this)
|
||||
this.trigger(this.dragging.indexOf('left') > -1 ? 'move' : 'drag-resize', this)
|
||||
this.dragging = null
|
||||
|
||||
}, {element: this.container})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue