From e59299cfc5285ca2230175545861b145cf5fe636 Mon Sep 17 00:00:00 2001 From: Jamie Wong Date: Fri, 29 Dec 2017 22:22:58 -0500 Subject: [PATCH] Grab cursor for drag-panning --- flamechart-view.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flamechart-view.tsx b/flamechart-view.tsx index 9ff57b1..c76b91a 100644 --- a/flamechart-view.tsx +++ b/flamechart-view.tsx @@ -432,6 +432,8 @@ export class FlamechartPanZoomView extends ReloadableComponent { + document.body.style.cursor = 'grabbing' + document.body.style.cursor = '-webkit-grabbing' this.lastDragPos = new Vec2(ev.offsetX, ev.offsetY) } @@ -507,6 +509,7 @@ export class FlamechartPanZoomView extends ReloadableComponent { + document.body.style.cursor = 'default' this.lastDragPos = null }