|
|
|
@ -84,11 +84,11 @@ export default { |
|
|
|
methods[method](body, 'mouseover', this.onHover); |
|
|
|
methods[method](body, 'mouseleave', this.onOut); |
|
|
|
methods[method](body, 'click touchend', this.onClick); |
|
|
|
methods[method](win, 'scroll', this.onFrameScroll); |
|
|
|
methods[method](win, 'scroll', this.onFrameScroll, true); |
|
|
|
}; |
|
|
|
methods[method](window, 'resize', this.onFrameUpdated); |
|
|
|
methods[method](listenToEl, 'scroll', this.onContainerChange); |
|
|
|
em[method]('component:toggled component:remove', this.onSelect, this); |
|
|
|
em[method]('component:toggled component:update', this.onSelect, this); |
|
|
|
em[method]('change:componentHovered', this.onHovered, this); |
|
|
|
em[method]( |
|
|
|
'component:resize component:styleUpdate component:input', |
|
|
|
@ -192,7 +192,7 @@ export default { |
|
|
|
this.elSelected = result; |
|
|
|
this.updateToolsGlobal(); |
|
|
|
// This will hide some elements from the select component
|
|
|
|
this.updateToolsLocal(result); |
|
|
|
this.updateLocalPos(result); |
|
|
|
this.initResize(component); |
|
|
|
}), |
|
|
|
|
|
|
|
@ -203,11 +203,11 @@ export default { |
|
|
|
this.updateToolsGlobal(); |
|
|
|
}, |
|
|
|
|
|
|
|
updateLocalPos() { |
|
|
|
updateLocalPos(data) { |
|
|
|
const sel = this.getElHovered(); |
|
|
|
if (!sel.el) return; |
|
|
|
sel.pos = this.getElementPos(sel.el); |
|
|
|
this.updateToolsLocal(); |
|
|
|
this.updateToolsLocal(data); |
|
|
|
}, |
|
|
|
|
|
|
|
getElHovered() { |
|
|
|
@ -576,7 +576,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
updateTools() { |
|
|
|
this.updateToolsLocal(); |
|
|
|
this.updateLocalPos(); |
|
|
|
this.updateGlobalPos(); |
|
|
|
}, |
|
|
|
|
|
|
|
|