File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -520,7 +520,10 @@ export class MPLCanvasView extends DOMWidgetView {
520
520
) ;
521
521
top_canvas . addEventListener (
522
522
'mousemove' ,
523
- throttle ( this . mouse_event ( 'motion_notify' ) , this . model . get ( 'pan_zoom_throttle' ) )
523
+ throttle (
524
+ this . mouse_event ( 'motion_notify' ) ,
525
+ this . model . get ( 'pan_zoom_throttle' )
526
+ )
524
527
) ;
525
528
526
529
top_canvas . addEventListener (
@@ -532,7 +535,13 @@ export class MPLCanvasView extends DOMWidgetView {
532
535
this . mouse_event ( 'figure_leave' )
533
536
) ;
534
537
535
- top_canvas . addEventListener ( 'wheel' , throttle ( this . mouse_event ( 'scroll' ) , this . model . get ( 'pan_zoom_throttle' ) ) ) ;
538
+ top_canvas . addEventListener (
539
+ 'wheel' ,
540
+ throttle (
541
+ this . mouse_event ( 'scroll' ) ,
542
+ this . model . get ( 'pan_zoom_throttle' )
543
+ )
544
+ ) ;
536
545
537
546
canvas_div . appendChild ( canvas ) ;
538
547
canvas_div . appendChild ( top_canvas ) ;
You can’t perform that action at this time.
0 commit comments