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 @@ -181,6 +181,10 @@ mpl.figure.prototype._init_canvas = function() {
181181 // upon first draw.
182182 this . _resize_canvas ( 600 , 600 ) ;
183183
184+ // Disable right mouse context menu.
185+ $ ( this . rubberband_canvas ) . bind ( "contextmenu" , function ( e ) {
186+ return false ;
187+ } ) ;
184188
185189 function set_focus ( ) {
186190 canvas . focus ( ) ;
Original file line number Diff line number Diff line change @@ -52,11 +52,6 @@ mpl.mpl_figure_comm = function(comm, msg) {
5252 var output_index = fig . cell_info [ 2 ]
5353 var cell = fig . cell_info [ 0 ] ;
5454
55- // Disable right mouse context menu.
56- $ ( fig . rubberband_canvas ) . bind ( "contextmenu" , function ( e ) {
57- return false ;
58- } ) ;
59-
6055} ;
6156
6257mpl . figure . prototype . handle_close = function ( fig , msg ) {
You can’t perform that action at this time.
0 commit comments