Skip to content

Commit

Permalink
left console log by accident
Browse files Browse the repository at this point in the history
  • Loading branch information
hxf31891 committed May 15, 2023
1 parent 955ecd9 commit e0f3967
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-best-gradient-color-picker",
"version": "2.1.18",
"version": "2.1.19",
"description": "An easy to use color/gradient picker for React.js",
"main": "lib/index.js",
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion src/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ export default function PickerContextWrapper({

const handleColor = (e, ctx) => {
const [x, y] = computePickerPosition(e, squareHeight)
console.log(x, y, 'test');
const x1 = Math.min(x + crossSize / 2, squareSize - 1)
const y1 = Math.min(y + crossSize / 2, squareHeight - 1)
const [r, g, b] = ctx.getImageData(x1, y1, 1, 1).data
Expand Down

0 comments on commit e0f3967

Please sign in to comment.