Skip to content

Slow performance when holding stroke for a long time #61

Description

@nathanguigui

On what kind of device are you using this library?

  • Android
  • iOS
  • Web

Environment

- OS: archlinux 5.17.4
- react-native: 0.64.3
- expo: 44.0.0
- @benjeau/react-native-draw: 0.8.1
- react-native-gesture-handler: 2.1.0
- react-native-svg: 12.1.1

Current Behavior

When holding more than 2 seconds a stroke, it's drawing with delay and slow performance

demo

Expected Behavior

No delay when holding for a longtime a stroke

Steps To Reproduce

Problem appear with the minimal example:

return (
  <View style={{flex: 1, height: "100%", width: "100%"}}>
    <Canvas style={{backgroundColor: "green"}}/>
  </View>
)

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions