Skip to content

Commit

Permalink
fix: set DOMElement pointer-event style to visible when it's pointerE…
Browse files Browse the repository at this point in the history
…nabled is true
  • Loading branch information
06wj committed May 18, 2016
1 parent 10c96d4 commit fa28684
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/view/DOMElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ var DOMElement = Class.create(/** @lends DOMElement.prototype */{
this.drawable = new Drawable();
var elem = this.drawable.domElement = properties.element || Hilo.createElement('div');
elem.id = this.id;

if(this.pointerEnabled){
elem.style.pointerEvents = 'visible';
}
},

/**
Expand Down

0 comments on commit fa28684

Please sign in to comment.