drag card target is now more accurate

This commit is contained in:
ali asaria 2014-09-13 09:33:50 -04:00
parent 4d6432fd96
commit c520135340
2 changed files with 11 additions and 4 deletions

View file

@ -552,6 +552,10 @@ input:hover {
-webkit-filter: hue-rotate(180deg); -webkit-filter: hue-rotate(180deg);
}*/ }*/
img {
user-drag: none; -moz-user-select: none; -webkit-user-drag: none;
}
.config { .config {
position: fixed; position: fixed;
right: 18px; right: 18px;

View file

@ -198,7 +198,8 @@ function drawNewCard(id, text, x, y, rot, colour, sticker, animationspeed) {
ui.helper.css(ui.originalPosition); ui.helper.css(ui.originalPosition);
return false; return false;
} }
} },
handle: "div.content"
}); });
//After a drag: //After a drag:
@ -675,6 +676,11 @@ function adjustCard(offsets, doSync) {
$(function() { $(function() {
//disable image dragging
//window.ondragstart = function() { return false; };
if (boardInitialized === false) if (boardInitialized === false)
blockUI('<img src="/images/ajax-loader.gif" width=43 height=11/>'); blockUI('<img src="/images/ajax-loader.gif" width=43 height=11/>');
@ -829,8 +835,5 @@ $(function() {
containment: 'parent' containment: 'parent'
}); });
//disable image dragging
//window.ondragstart = function() { return false; };
}); });