Harley-xk / MaLiang

iOS painting and drawing library based on Metal. 神笔马良有一支神笔(基于 Metal 的涂鸦绘图库)
MIT License
1.47k stars 208 forks source link

Undo and Redo doesn't work #127

Closed goldenmobile028 closed 2 years ago

goldenmobile028 commented 2 years ago

Thank you for your this library. I am using this code to draw lines but the undo and redo doesn't work. I just attached a video. Can you please let me know how to fix this problem?

https://user-images.githubusercontent.com/20561207/159237268-34f5a003-6011-4d56-80ee-bfa69e40122a.mp4

Regards.

Harley-xk commented 2 years ago

does this only occur on the simulator? It works well on my real device.

goldenmobile028 commented 2 years ago

thanks for your message. it doesn't occur in real device exactly but there is another problem on real device. I just added a new video.

https://drive.google.com/file/d/1WAh897HlzKjH8YAAjvkejTHR_FE2GO_h/view?usp=sharing

Thanks.

goldenmobile028 commented 2 years ago

hi @Harley-xk. do you have any idea about undo/redo issue?

Harley-xk commented 2 years ago

I can't reporduce the probelm, what's the model and system of your device?

goldenmobile028 commented 2 years ago

my device is iphone 12 mini and ios is 15.1

goldenmobile028 commented 2 years ago

I am sorry, I was using old code. I have downloaded final one and tested it. It working well. Thanks.