From f4fad13eb8e037a5e8ffb73c7e555d0c558c6407 Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Tue, 29 Sep 2015 12:07:24 -0400 Subject: [PATCH] SAAS-1086 - centre cursor when dragging --- .../airtime/library/events/library_showbuilder.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/airtime_mvc/public/js/airtime/library/events/library_showbuilder.js b/airtime_mvc/public/js/airtime/library/events/library_showbuilder.js index c6d8f8bbd..833ad71ae 100644 --- a/airtime_mvc/public/js/airtime/library/events/library_showbuilder.js +++ b/airtime_mvc/public/js/airtime/library/events/library_showbuilder.js @@ -134,10 +134,9 @@ var AIRTIME = (function(AIRTIME) { return container; }, cursor: 'move', - //cursorAt: { - // top: 30, - // right: 10 - //}, + cursorAt: { + left: Math.floor($(this).outerWidth() / 2) + }, distance: 25, // min-distance for dragging connectToSortable: '#show_builder_table' }); @@ -174,10 +173,9 @@ var AIRTIME = (function(AIRTIME) { return container; }, cursor: 'move', - //cursorAt: { - // top: 30, - // right: 10 - //}, + cursorAt: { + left: Math.floor($(this).outerWidth() / 2) + }, distance: 25, // min-distance for dragging connectToSortable: '.active-tab .spl_sortable' });