} else if (header.isOrHasChild(target) && !dragging) {
// dblclick handled in connector
if (type != Event.ONDBLCLICK && draggable) {
- if (type == Event.ONMOUSEDOWN) {
+ if (type == Event.ONMOUSEDOWN || type == Event.ONTOUCHSTART) {
/**
* Prevents accidental selection of window caption or
* content. (#12726)
event.preventDefault();
headerDragPending = event;
- } else if (type == Event.ONMOUSEMOVE
+ } else if ((type == Event.ONMOUSEMOVE || type == Event.ONTOUCHMOVE)
&& headerDragPending != null) {
// ie won't work unless this is set here
dragging = true;
* If clicking on other than the content, move focus to the window.
* After that this windows e.g. gets all keyboard shortcuts.
*/
- if (type == Event.ONMOUSEDOWN
+ if ((type == Event.ONMOUSEDOWN || type == Event.ONTOUCHSTART)
&& !contentPanel.getElement().isOrHasChild(target)
&& target != closeBox && target != maximizeRestoreBox) {
contentPanel.focus();