Browse Source

Canvas Touch Support iOS. Fixes #2175

pull/2190/head
Artur Arseniev 7 years ago
parent
commit
f906635e35
  1. 3
      src/commands/view/SelectComponent.js

3
src/commands/view/SelectComponent.js

@ -50,7 +50,7 @@ export default {
const win = this.getContentWindow();
methods[method](body, 'mouseover', this.onHover);
methods[method](body, 'mouseout', this.onOut);
methods[method](body, 'click', this.onClick);
methods[method](body, 'click touchend', this.onClick);
methods[method](win, 'scroll resize', this.onFrameScroll);
em[method]('component:toggled', this.onSelect, this);
em[method]('change:componentHovered', this.onHovered, this);
@ -179,6 +179,7 @@ export default {
onClick(e) {
const { em } = this;
e.stopPropagation();
e.preventDefault();
if (em.get('_cmpDrag')) return em.set('_cmpDrag');
const $el = $(e.target);
let model = $el.data('model');

Loading…
Cancel
Save