Skip to content

Commit

Permalink
🐞 fix(canvas): fix bug with BenJeau#59 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
weican committed Feb 5, 2024
1 parent 13ff23f commit 4781cb7
Show file tree
Hide file tree
Showing 3 changed files with 14,439 additions and 15,143 deletions.
8 changes: 4 additions & 4 deletions packages/react-native-draw/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@benjeau/react-native-draw",
"name": "@vcandou/react-native-draw",
"version": "0.8.3",
"description": "Cross-platform React Native drawing component",
"main": "lib/commonjs/index",
Expand All @@ -12,10 +12,10 @@
},
"repository": {
"type": "git",
"url": "https://github.com/BenJeau/react-native-draw.git",
"url": "https://github.com/carlleton/react-native-draw.git",
"directory": "packages/react-native-draw"
},
"author": "Benoit Jeaurond <[email protected]> (https://github.com/BenJeau)",
"author": "carlleton",
"license": "MIT",
"bugs": {
"url": "https://github.com/BenJeau/react-native-draw/issues"
Expand All @@ -28,7 +28,7 @@
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"homepage": "https://github.com/BenJeau/react-native-draw#readme",
"homepage": "https://github.com/carlleton/react-native-draw#readme",
"keywords": [
"react-native-component",
"react-component",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native-draw/src/Canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ const Canvas = forwardRef<CanvasRef, CanvasProps>(
() => onPathsChange && onPathsChange(paths),
[paths, onPathsChange]
);

const panGesture = Gesture.Pan()
// @ts-ignore
const panGesture = Gesture.Pan().runOnJS(true)
.onChange(({ x, y }) => {
switch (tool) {
case DrawingTool.Brush:
Expand Down
Loading

0 comments on commit 4781cb7

Please sign in to comment.