Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

time attribute only present in last stroke #74

Open
ralfstx opened this issue Mar 8, 2022 · 0 comments
Open

time attribute only present in last stroke #74

ralfstx opened this issue Mar 8, 2022 · 0 comments
Labels
scope: upstream Issue in upstream dependency

Comments

@ralfstx
Copy link

ralfstx commented Mar 8, 2022

When a signature is given that consists of multiple strokes, the strokes array returned by toData() include the time attribute only in the last element.

Expected: All strokes should contain time information.

Example:

[
  [
    { "x": 68.33331298828125, "y": 110.61669921875 },
    { "x": 76.33331298828125, "y": 107.61669921875 },
    { "x": 84.33331298828125, "y": 105.61669921875 },
    
  ],
  [
    { "x": 164.33331298828125, "y": 103.61669921875 },
    { "x": 170.33331298828125, "y": 103.61669921875 },
    { "x": 176.33331298828125, "y": 102.61669921875 },
    
  ],
  [
    { "x": 317.33331298828125, "y": 100.61669921875, "time": 1646737591539 },
    { "x": 327.33331298828125, "y": 96.61669921875, "time": 1646737591584 },
    { "x": 333.33331298828125, "y": 95.61669921875, "time": 1646737591601 },
    
  ]
]

Version: 1.0.5, on Firefox 97.0.2 (64-bit) ubuntu (snap)

@agilgur5 agilgur5 added the scope: upstream Issue in upstream dependency label Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: upstream Issue in upstream dependency
Projects
None yet
Development

No branches or pull requests

2 participants