Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb19e7c + 0775a2a commit 6be39e5Copy full SHA for 6be39e5
2 files changed
lib/matplotlib/backends/web_backend/mpl.js
@@ -196,6 +196,10 @@ mpl.figure.prototype._init_canvas = function() {
196
// upon first draw.
197
this._resize_canvas(600, 600);
198
199
+ // Disable right mouse context menu.
200
+ $(this.rubberband_canvas).bind("contextmenu",function(e){
201
+ return false;
202
+ });
203
204
function set_focus () {
205
canvas.focus();
lib/matplotlib/backends/web_backend/nbagg_mpl.js
@@ -52,11 +52,6 @@ mpl.mpl_figure_comm = function(comm, msg) {
52
var output_index = fig.cell_info[2]
53
var cell = fig.cell_info[0];
54
55
- // Disable right mouse context menu.
56
- $(fig.rubberband_canvas).bind("contextmenu",function(e){
57
- return false;
58
- });
59
-
60
};
61
62
mpl.figure.prototype.handle_close = function(fig, msg) {
0 commit comments