Skip to content

Commit

Permalink
Fix: Fixing issue of drag & drop
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmeeedMostafa committed Sep 22, 2020
1 parent 2a6a875 commit 3731c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/react/components/CustomizedCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export default class CustomizedCanvas extends Component {
}

startDragging = (event) => {
if (event.targetTouches[0]) {
if (event.targetTouches && event.targetTouches[0]) {
event.preventDefault();
const { clientX, clientY } = event.targetTouches[0];
const { x, y } = this._canvas.getBoundingClientRect();
Expand Down

0 comments on commit 3731c66

Please sign in to comment.