forked from 0x2620/oxjs
support for drag and drop
This commit is contained in:
parent
9ea5cce853
commit
5d454f0a80
8 changed files with 39 additions and 11 deletions
|
|
@ -164,6 +164,7 @@ Ox.List = function(options, self) {
|
|||
0, 60, 60, 60, 60, 60, 60, 63, 64, 63, 60, 66, 60, 65, 70, 60, 64, 68, 72, 76, 60
|
||||
];
|
||||
}
|
||||
/*
|
||||
if (self.options.draggable) {
|
||||
that.bind({
|
||||
dragstart: function(e) {
|
||||
|
|
@ -172,6 +173,7 @@ Ox.List = function(options, self) {
|
|||
}
|
||||
});
|
||||
}
|
||||
*/
|
||||
|
||||
if (!self.isAsync) {
|
||||
self.listLength = self.options.items.length;
|
||||
|
|
@ -839,7 +841,13 @@ Ox.List = function(options, self) {
|
|||
} else if (self.selected.length > 1) {
|
||||
// this could be the first click
|
||||
// of a double click on multiple items
|
||||
// or the mousedown of a drag of multiple items
|
||||
selectTimeout = true;
|
||||
that.$content.one({
|
||||
mousemove: function() {
|
||||
self.clickTimeout && clearTimeout(self.clickTimeout);
|
||||
}
|
||||
});
|
||||
} else if (self.options.type == 'text' && hadFocus) {
|
||||
var $cell = findCell(e),
|
||||
$element = $cell || self.$items[pos];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue