Skip to content

Commit 6845bad

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7f41ed0 commit 6845bad

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/mpl_widget.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,10 @@ export class MPLCanvasView extends DOMWidgetView {
520520
);
521521
top_canvas.addEventListener(
522522
'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+
)
524527
);
525528

526529
top_canvas.addEventListener(
@@ -532,7 +535,13 @@ export class MPLCanvasView extends DOMWidgetView {
532535
this.mouse_event('figure_leave')
533536
);
534537

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+
);
536545

537546
canvas_div.appendChild(canvas);
538547
canvas_div.appendChild(top_canvas);

0 commit comments

Comments
 (0)