Skip to content

Commit

Permalink
Added Mobile edit
Browse files Browse the repository at this point in the history
  • Loading branch information
victrme committed Oct 28, 2019
1 parent 4f48745 commit ea7b85f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/scripts/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,18 @@ function quickLinks(event, that) {
}
}

let img = elem.querySelector("img");

img.oncontextmenu = function(e) {
e.preventDefault();
editlink(elem);
return false
}
img.onmousedown = function(e) {
e.preventDefault();
return false
}

elem.ondragstart = function(e) {
//e.preventDefault();
e.dataTransfer.setData("text/plain", e.target.id);
Expand Down

0 comments on commit ea7b85f

Please sign in to comment.