When switching from Edit to Reading View, Visual.update(options) is triggered and options.viewMode is set to 0.
Vice versa, when switching back to Edit View, Visual.update() ist NOT triggered and therefore I can not react to this event.
In the upcoming calls to Visual.update (like on data change or resizing), options.viewMode is 1 as expected.
Related, the typedef of ViewMode is
const enum ViewMode { View = 0, Edit = 1, InFocusEdit = 2, }
- but value 2 never occured in my occasions. What is "InFocusedEdit"?