ONLYOFFICE / sdkjs-plugins

The add-ons for ONLYOFFICE Document Server and ONLYOFFICE Desktop Editors.
https://www.onlyoffice.com
Apache License 2.0
136 stars 134 forks source link

Error in plugin example_work_with_content_controls_navigation: recursive execution #38

Open flaminestone opened 6 years ago

flaminestone commented 6 years ago

Problem with plugin example_work_with_content_controls_navigation In code was used undocumented method window.Asc.plugin.event_onTargetPositionChanged.

This method will be recursively executed after click to any content control id in plugin meny gifout

AlexeyMatveev686 commented 6 years ago

Fix commit: https://github.com/ONLYOFFICE/sdkjs-plugins/commit/54c89280ecb543f34a3b77b30b29a274d9f401f2

flaminestone commented 6 years ago

Yes, Infinity execution is fixed, but this method is execute after click to any place in page, not only in content control. Next case - try to mousedown near page and move cursor. Or scroll page - method will be execute too gifout