「バインド」関数で jQuery UI のドラッグ可能なオプションを使用するにはどうすればよいですか? 標準draggable()
機能を使用しても、やりたいことがうまくいきません。
ありがとう!
$('a#dragthis')
.bind('dragstart', function(e) {
isDragging = true;
})
.bind('drag', function(e) {
var x = e.pageX;
var y = e.pageY;
console.log(x + "|" + y);
motivationIsWorking(x, y);
})
.bind('dragend', function(e) {
isDragging = false;
motivationStopped();
unmotivateUser();
});