MyScript / iinkJS

:pencil2: :cloud: iinkJS is the fastest way to integrate rich handwriting recognition features in your webapp.
https://developer.myscript.com
Other
136 stars 17 forks source link

Undo function not working as expected #26

Open supriya-ck12 opened 1 year ago

supriya-ck12 commented 1 year ago

While using the iinkJS with Math recognition and image/png in the mime type, the undo functionality does not work as expected.

Steps to replicate the issue:

  1. Open the myScript editor
  2. Draw a number
  3. Click on undo button
  4. Redo button is still disabled.

Issue

When the first drawn element is removed using the undo button, the redo button is still in the disabled mode. Additionally, the result content is not cleared from the UI.

Reference code is taken from - https://github.com/MyScript/iinkJS/blob/master/examples/v4/websocket_math_iink.html Demo link - https://codesandbox.io/s/myscript-image-issue-demo-7vh21l Note: replace the server keys with the actual ones to view this behavior on the demo link (https://codesandbox.io/s/myscript-image-issue-demo-7vh21l?file=/index.html:197968-198084)

Screen recording

https://user-images.githubusercontent.com/90828105/228843613-08502699-f9de-4f90-88cc-db9ac913baf1.mov

Olivier-myscript commented 1 year ago

Contacted via the forum. Thank you

supriya-ck12 commented 1 year ago

Hi, @Olivier-myscript Could you share the updates regarding this issue?