Open Spangonagornomb opened 5 years ago
What do you think of the pull request in #2282? I plan to merge that as soon as I get around to fixing a few things. Would that be sufficient?
Might add long click press
var node = document.getElementsByTagName("p")[0];
var longpress = false;
var presstimer = null;
var longtarget = null;
var cancel = function(e) {
if (presstimer !== null) {
clearTimeout(presstimer);
presstimer = null;
}
this.classList.remove("longpress");
};
var click = function(e) {
if (presstimer !== null) {
clearTimeout(presstimer);
presstimer = null;
}
this.classList.remove("longpress");
if (longpress) {
return false;
}
alert("press");
};
var start = function(e) {
console.log(e);
if (e.type === "click" && e.button !== 0) {
return;
}
longpress = false;
this.classList.add("longpress");
if (presstimer === null) {
presstimer = setTimeout(function() {
alert("long click");
longpress = true;
}, 1000);
}
return false;
};
node.addEventListener("mousedown", start);
node.addEventListener("touchstart", start);
node.addEventListener("click", click);
node.addEventListener("mouseout", cancel);
node.addEventListener("touchend", cancel);
node.addEventListener("touchleave", cancel);
node.addEventListener("touchcancel", cancel);
A suggest I think if you add some kind of button that help you to see all the posts by a user on pol tv etc etc
it would be easier to navigate titanic thread ....
If a dev see this posts let me know that you seen it and tell me if you consider to do it because I think its a great idea :+1: I would be nice and fun to navigate between posts ... might even add option to make colors to on the poster itself by his is id