Language: JavaScript
Label: vulnerable
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
O&&Math.abs(this.scrollTop-b.container.scrollTop)<O&&Math.abs(this.startX-M.getGraphX())<O&&Math.abs(this.startY-M.getGraphY())<O&&(0<parseFloat(g.chromelessToolbar.style.opacity||0)?k():v(30))}})}this.editor.editable||this.addChromelessClickHandler()}else if(this.editor.extendCanvas){var G=b.view.validate,ja=new mxPoint,fa=null;b.view.validate=function(){if(null!=b.container&&mxUtils.hasScrollbars(b.container)){if(null!=g.currentPage&&fa!=g.currentPage){fa=g.currentPage;var C=b.getPageLayout(b.getBoundingBoxFromGeometry(b.model.getCells(),
!0),ja,1),M=b.getDefaultTranslate(C);this.x0=C.x;this.y0=C.y;b.setScrollbarPositions(g.currentPage.viewState,M.x,M.y);if(M.x!=this.translate.x||M.y!=this.translate.y){this.setTranslate(M.x,M.y);return}}C=b.getPagePadding();M=b.getPageSize();this.translate.x=C.x-(this.x0||0)*M.width;this.translate.y=C.y-(this.y0||0)*M.height}G.apply(this,arguments)};if(!b.isViewer()){var ca=b.sizeDidChange;b.sizeDidChange=function(){if(null!=this.container&&mxUtils.hasScrollbars(this.container)){this.updateMinimumSize();