Skip to content

Commit

Permalink
Merge pull request #821 from hainm/ngl_focus
Browse files Browse the repository at this point in the history
ADD _ngl_focused
  • Loading branch information
hainm committed Jun 15, 2019
2 parents 8a81ee2 + b286a7f commit 3cd9d5b
Show file tree
Hide file tree
Showing 5 changed files with 471 additions and 563 deletions.
12 changes: 12 additions & 0 deletions js/src/widget_ngl.js
Expand Up @@ -199,6 +199,18 @@ var NGLView = widgets.DOMWidgetView.extend({
that.touch();
}, false);

container.addEventListener('mouseover', function(e) {
that.model.set("_ngl_focused", 1)
that.touch();
e; // linter
}, false);

container.addEventListener('mouseout', function(e) {
that.model.set("_ngl_focused", 0)
that.touch();
e; // linter
}, false);

that = this;
this.stage.signals.componentAdded.add(function() {
var len = this.stage.compList.length;
Expand Down

0 comments on commit 3cd9d5b

Please sign in to comment.