From d8e05fd07702143737129d3cccabdd47c7122578 Mon Sep 17 00:00:00 2001
From: Fawn <fangrui_tong@brown.edu>
Date: Wed, 6 Mar 2019 19:11:15 -0500
Subject: eraser works on click and drag

---
 src/client/views/InkingStroke.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/client/views/InkingStroke.tsx')

diff --git a/src/client/views/InkingStroke.tsx b/src/client/views/InkingStroke.tsx
index 76ea7f084..bab9f3a60 100644
--- a/src/client/views/InkingStroke.tsx
+++ b/src/client/views/InkingStroke.tsx
@@ -60,7 +60,7 @@ export class InkingStroke extends React.Component<StrokeProps> {
         return (
             <path className={(this._strokeTool === InkTool.Highlighter) ? "highlight" : ""}
                 d={pathData} style={pathStyle} strokeLinejoin="round" strokeLinecap="round"
-                onMouseOver={this.deleteStroke} />
+                onMouseOver={this.deleteStroke} onMouseDown={this.deleteStroke} />
         )
     }
 }
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

