Commit 8a2420d3 authored by Janez K's avatar Janez K

dragging is now a bit more user friendly. multi drag must be done with shift

parent 8c96bffb
...@@ -1065,7 +1065,8 @@ function updateWidgetListeners() { ...@@ -1065,7 +1065,8 @@ function updateWidgetListeners() {
var currentWidget = $(this); var currentWidget = $(this);
var y = parseInt($(this).css('top')); var y = parseInt($(this).css('top'));
var x = parseInt($(this).css('left')); var x = parseInt($(this).css('left'));
$(".ui-selected").each(function() { $(".ui-selected").each(function() {
//get the offset first //get the offset first
...@@ -1141,7 +1142,7 @@ function updateWidgetListeners() { ...@@ -1141,7 +1142,7 @@ function updateWidgetListeners() {
}} }}
); );
$(".canvas div.widget").click(function(e) { $(".canvas div.widget").mousedown(function(e) {
selectedWidget = $(this).attr('rel'); selectedWidget = $(this).attr('rel');
if (!(e.ctrlKey || e.metaKey || e.shiftKey)) if (!(e.ctrlKey || e.metaKey || e.shiftKey))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment