mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-15 14:57:42 +00:00
Improve support for drag and drop
Documentation TBD
This commit is contained in:
@@ -145,7 +145,7 @@ LinkWidget.prototype.handleClickEvent = function(event) {
|
||||
LinkWidget.prototype.handleDragStartEvent = function(event) {
|
||||
if(event.target === this.domNodes[0]) {
|
||||
if(this.to) {
|
||||
$tw.dragInProgress = true;
|
||||
$tw.dragInProgress = this.domNodes[0];
|
||||
// Set the dragging class on the element being dragged
|
||||
$tw.utils.addClass(event.target,"tc-tiddlylink-dragging");
|
||||
// Create the drag image elements
|
||||
@@ -185,7 +185,7 @@ LinkWidget.prototype.handleDragStartEvent = function(event) {
|
||||
|
||||
LinkWidget.prototype.handleDragEndEvent = function(event) {
|
||||
if(event.target === this.domNodes[0]) {
|
||||
$tw.dragInProgress = false;
|
||||
$tw.dragInProgress = null;
|
||||
// Remove the dragging class on the element being dragged
|
||||
$tw.utils.removeClass(event.target,"tc-tiddlylink-dragging");
|
||||
// Delete the drag image element
|
||||
|
||||
Reference in New Issue
Block a user