Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/core/DraggableList.js
Show First 20 Lines • Show All 175 Lines • ▼ Show 20 Lines | _ondrag : function(e) { | ||||
} | } | ||||
if (e.getNode('tag:a')) { | if (e.getNode('tag:a')) { | ||||
// Never start a drag if we're somewhere inside an <a> tag. This makes | // Never start a drag if we're somewhere inside an <a> tag. This makes | ||||
// links unclickable in Firefox. | // links unclickable in Firefox. | ||||
return; | return; | ||||
} | } | ||||
// See T13452. If this is an ungrabble part of the item, don't start a | |||||
// drag. We use this to allow users to select text on cards. | |||||
var target = e.getTarget(); | |||||
if (target) { | |||||
if (JX.Stratcom.hasSigil(target, 'ungrabbable')) { | |||||
return; | |||||
} | |||||
} | |||||
if (JX.Stratcom.pass()) { | if (JX.Stratcom.pass()) { | ||||
// Let other handlers deal with this event before we do. | // Let other handlers deal with this event before we do. | ||||
return; | return; | ||||
} | } | ||||
e.kill(); | e.kill(); | ||||
var drag = e.getNode(this._sigil); | var drag = e.getNode(this._sigil); | ||||
▲ Show 20 Lines • Show All 650 Lines • Show Last 20 Lines |