mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 23:03:50 +00:00
parent
bb81f00161
commit
66d5e2650e
@ -156,14 +156,6 @@ LinkWidget.prototype.handleDragStartEvent = function(event) {
|
|||||||
inner.appendChild(this.document.createTextNode(this.to));
|
inner.appendChild(this.document.createTextNode(this.to));
|
||||||
this.dragImage.appendChild(inner);
|
this.dragImage.appendChild(inner);
|
||||||
this.document.body.appendChild(this.dragImage);
|
this.document.body.appendChild(this.dragImage);
|
||||||
// Astoundingly, we need to cover the dragger up: http://www.kryogenix.org/code/browser/custom-drag-image.html
|
|
||||||
var cover = this.document.createElement("div");
|
|
||||||
cover.className = "tc-tiddler-dragger-cover";
|
|
||||||
cover.style.left = (inner.offsetLeft - 16) + "px";
|
|
||||||
cover.style.top = (inner.offsetTop - 16) + "px";
|
|
||||||
cover.style.width = (inner.offsetWidth + 32) + "px";
|
|
||||||
cover.style.height = (inner.offsetHeight + 32) + "px";
|
|
||||||
this.dragImage.appendChild(cover);
|
|
||||||
// Set the data transfer properties
|
// Set the data transfer properties
|
||||||
var dataTransfer = event.dataTransfer;
|
var dataTransfer = event.dataTransfer;
|
||||||
// First the image
|
// First the image
|
||||||
|
@ -276,6 +276,8 @@ a.tc-tiddlylink-external:hover {
|
|||||||
|
|
||||||
.tc-tiddler-dragger-inner {
|
.tc-tiddler-dragger-inner {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
top: -1000px;
|
||||||
|
left: -1000px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 8px 20px;
|
padding: 8px 20px;
|
||||||
font-size: 16.9px;
|
font-size: 16.9px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user