File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
lib/matplotlib/backends/web_backend Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,10 @@ mpl.figure.prototype._init_canvas = function() {
196
196
// upon first draw.
197
197
this . _resize_canvas ( 600 , 600 ) ;
198
198
199
+ // Disable right mouse context menu.
200
+ $ ( this . rubberband_canvas ) . bind ( "contextmenu" , function ( e ) {
201
+ return false ;
202
+ } ) ;
199
203
200
204
function set_focus ( ) {
201
205
canvas . focus ( ) ;
Original file line number Diff line number Diff line change @@ -52,11 +52,6 @@ mpl.mpl_figure_comm = function(comm, msg) {
52
52
var output_index = fig . cell_info [ 2 ]
53
53
var cell = fig . cell_info [ 0 ] ;
54
54
55
- // Disable right mouse context menu.
56
- $ ( fig . rubberband_canvas ) . bind ( "contextmenu" , function ( e ) {
57
- return false ;
58
- } ) ;
59
-
60
55
} ;
61
56
62
57
mpl . figure . prototype . handle_close = function ( fig , msg ) {
You can’t perform that action at this time.
0 commit comments