sdkjs-plugins icon indicating copy to clipboard operation
sdkjs-plugins copied to clipboard

Error in plugin example_work_with_content_controls_navigation: recursive execution

Open flaminestone opened this issue 6 years ago • 2 comments

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

flaminestone avatar Oct 11 '18 15:10 flaminestone

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

AlexeyMatveev686 avatar Oct 12 '18 13:10 AlexeyMatveev686

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

flaminestone avatar Oct 12 '18 15:10 flaminestone