Skip to content

Commit

Permalink
fix(drawing): Fix Safari doesn't reflect color for custom cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingze Xiao committed Jan 14, 2021
1 parent d5c0adb commit adacdd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/drawing/DrawingCreator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ export default function DrawingCreator({
return;
}

Object.assign(element.style, {
cursor: getDrawingCursor(color),
});
// Safari doesn't support continuous switching curstom cursors
element.style.cursor = 'crosshair';
element.style.cursor = getDrawingCursor(color);
}, [color, creatorElRef]);

return (
Expand Down

0 comments on commit adacdd0

Please sign in to comment.