iinkJS icon indicating copy to clipboard operation
iinkJS copied to clipboard

Undo function not working as expected

Open supriya-ck12 opened this issue 2 years ago • 2 comments

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

supriya-ck12 avatar Mar 30 '23 13:03 supriya-ck12

Contacted via the forum. Thank you

Olivier-myscript avatar Apr 06 '23 08:04 Olivier-myscript

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

supriya-ck12 avatar Jun 06 '23 05:06 supriya-ck12