One question bugs my mind lately - I will explain:
In a `mousedown` handler I use `.preventDefault` on the event to prevent text selection while dragging:
$(document).bind('mousedown', function(event){
event.preventDefault();
});
So far so good.
Then, while still having the mouse button pressed down, I would like to wait for a `longclick` event to be triggered (http://github.com/pisi/Longclick) and have the `longclick` handler to somehow resume the original `mousedown` event and commence the text selection like if the event's default wasn't ever prevented.
Is there a way to kind of late-trigger an otherwise native mouse event?
Is `.trigger` capable to somehow accept an existing (stored) event object? For example something like this?:
var originalEvent;
$(document)
.bind('mousedown', function(event){
event.preventDefault();
originalEvent= event;
})
.bind('longclick', function(event){
$(event.target).trigger(originalEvent)
})
I'm after being able to drag an entire text paragraph and still offer the possibility to perform text selection within the paragraph.
few days ago I wanted to post a follow-up to an issue reported on my plugin on plugins.jquery.com just to find out some really weird things are happening there.
First I couldn't post the reply with an error telling me I didn't select any project. So I checked the dropdown list of projects to manually find the Reel project. It isn't in the list.
Then I tried to search for Reel project. With no luck.
I also tried a breadcrumb link on the issue page which finally led me to my project page - http://plugins.jquery.com/project/reel - where I saw another unusual thing - a pink background underlying the page.
Now when I'm logged in i see "ACCESS DENIED" nearly anywhere I look - jQuery Plugins Website Issue Queue, my plugin homes, my issues, the support request I filed, even on the jQuery Plugins homepage.
I have two projects there and even when I'm not logged I'm able to see just one (longclick), the other (reel) gives me access denied.
I'm also denied to post a follow-up to my support request, hence I'm posting here.
Please, please, are here some jQuery Plugins Website insiders? Can someone please clarify what the heck is going on with my account and my Reel project? I'm totally confused :(