Skip to content

Commit

Permalink
bug-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuvssut committed Jun 4, 2021
1 parent 010229a commit e4cb0b3
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/pages/Sketch/components/Canvas.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -676,16 +676,7 @@ function Canvas() {
<DragIndicator style={{ cursor: "grab" }} fontSize="large" />
</div>
</Draggable>
<canvas
ref={canvasRef}
width={`${canvasWidth}`}
height={`${canvasHeight}`}
className={styles.canvas}
onMouseDown={handleMouseDown}
onMouseMove={handleMouseMove}
onMouseUp={handleMouseUp}
onMouseLeave={handleMouseLeave}
/>

<div className={styles.mousePosition}>
Mouse Position: (x, y) = ({mousePosition.x}, {mousePosition.y})
</div>
Expand Down

0 comments on commit e4cb0b3

Please sign in to comment.