Skip to content

Commit cea9844

Browse files
committed
Attach scrolling handler to canvas_div
Conflicts: lib/matplotlib/backends/web_backend/mpl.js
1 parent 6f39b7d commit cea9844

File tree

1 file changed

+3
-0
lines changed
  • lib/matplotlib/backends/web_backend

1 file changed

+3
-0
lines changed

lib/matplotlib/backends/web_backend/mpl.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ mpl.figure = function(figure_id, websocket, ondownload, parent_element) {
4646
this._root_extra_style(this.root)
4747
this.root.attr('style', 'display: inline-block');
4848

49+
this.parent_element = parent_element
4950
$(parent_element).append(this.root);
5051

5152
this._init_header(this);
@@ -94,6 +95,7 @@ mpl.figure.prototype._init_header = function() {
9495
this.header = titletext[0];
9596
}
9697

98+
9799
mpl.figure.prototype._canvas_extra_style = function(canvas_div) {
98100

99101
}
@@ -168,6 +170,7 @@ mpl.figure.prototype._init_canvas = function() {
168170
// upon first draw.
169171
this._resize_canvas(600, 600);
170172

173+
171174
function set_focus () {
172175
canvas.focus();
173176
canvas_div.focus();

0 commit comments

Comments
 (0)