mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
[fix] Prevent firefox native D'n'D behavior.
This commit is contained in:
parent
c932716470
commit
7f32fed667
1 changed files with 3 additions and 0 deletions
|
@ -124,6 +124,9 @@ var dragg = function(id) {
|
|||
|
||||
// Start dragging
|
||||
window.addEvent(elem, 'mousedown', function(e){
|
||||
// Prevent firefox native D'n'D behavior
|
||||
window.eventPreventDefault(e);
|
||||
|
||||
selected = elem;
|
||||
x_elem = x_pos - selected.offsetLeft;
|
||||
y_elem = y_pos - selected.offsetTop;
|
||||
|
|
Loading…
Reference in a new issue