Skip to content

Commit

Permalink
wip: focus canvas on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Aug 16, 2022
1 parent d2cc0e7 commit 80bd88a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/core/Canvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ Canvas.prototype._init = function(config) {

var svg = this._svg = svgCreate('svg');

this._eventBus.on('element.hover', function() {
svg.focus();
});

svgAttr(svg, {
width: '100%',
height: '100%'
Expand Down

0 comments on commit 80bd88a

Please sign in to comment.