Issue
I have a code in which should only be executed after an onclick event. On mobile devices its fine because I use touchstart and touchend. Is there an event similar to touchend for use on a computer?
My code currently looks similar to..
document.getElementById('trigger-box').addEventListener(function(e) {
// the event will be used later
// my code
});
I have tried searching the internet for an answer but unfortunately couldn't find an answer. Therefore, I have posted my question here.
Solution
As per comment:
document.getElementById('trigger-box').addEventListener("mouseup", function(e) {
// the event will be used later
// my code
});
Answered By - Fabrizio Mazzoni
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.