Karen,
You will find that this answers your question:
Edits to the OnScreenWidgetPanel.js file.
define(['dojo/_base/declare',
'dojo/_base/lang',
'dojo/_base/html',
'dojo/on',
'dojo/dnd/move',
'dijit/_TemplatedMixin',
'jimu/BaseWidgetPanel',
'jimu/utils',
'dojox/layout/ResizeHandle',
'dijit/ConfirmDialog',
'dojo/touch'
],
function(
declare, lang, html, on, Move,
_TemplatedMixin, BaseWidgetPanel, utils, ResizeHandle, ConfirmDialog
) {
.....
_confirmClose: function(){
this.myDialog.show();
},
_onCloseBtnClicked: function(evt) {
console.info(this);
if(this.label === 'Draw'){
this._confirmClose();
return;
}
this.panelManager.closePanel(this);
evt.stopPropagation();
if (evt.type === "touchstart") {
evt.preventDefault();
}
},