Photoshop panel does not catch dispatched event from JSX anymore till script ends

  • 1
  • Problem
  • Updated 1 year ago
Photoshop panel does not catch dispatched event from JSX anymore till JSX script ends

My panel running jsx code and in the middle of script it calls manual transform, and dispatch message to addEventListener in main.js. This message showing directly on panel with addEventListener function, it is info what exactly file is opened now etc...
After PS update to 2017.1.0 from 2017.0, panel is completely freezed till script ends. I tried to call "alert" function inside addEventListener in main.js to check if it's working and this alert showed only when script was ended completely. So, all dispatched events are working only when script completed it's work. Before PS update event was catched always when it was dispatched and everything worked.

I attached screenshot of code inside main.js, that is working directly in panel with HTML.

Photo of Terian Chu

Terian Chu

  • 2 Posts
  • 0 Reply Likes
  • sad

Posted 1 year ago

  • 1

Be the first to post a reply!