javascript - dragging an element with middle mouse button -


i drag element middle mouse button. i'm using jquery, , default, drag event set left mouse button. found 7 years old ticket on jquery ui guy asks implement option in draggable object. seems wasn't implemented, guy has working demo (it's right mouse button in demo) modified jquery file. don't want modify jquery source code.

on this thread, manage make drag work when user shift + left mouse button. found this thread explains how enable/disable drag event.

is there way middle mouse drag jquery?

the following code allows me shift + left mouse button, that's not desired result. can't figure out how start drag when user uses middle mouse button.

$(function(e) {     var handler = function(e) {         if (e.shiftkey) {             $('.objects').draggable({                 disabled: false             });         } else {             $('.objects').draggable({                 disabled: true             });         }     };     $(document).keydown(handler);     $(document).keyup(handler); });  


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -