forked from 0x2620/oxjs
exclusively handle selectability of text via .OxSelectable and body.OxDragging (to be set/unset in dragstart/dragend handlers)
This commit is contained in:
parent
f8816e7522
commit
564ce69a78
17 changed files with 53 additions and 39 deletions
|
|
@ -606,6 +606,7 @@ Ox.Calendar = function(options, self) {
|
|||
|
||||
function dragstart(data) {
|
||||
//if ($(e.target).is(':not(.OxLine > .OxEvent)')) {
|
||||
Ox.$body.addClass('OxDragging');
|
||||
self.drag = {
|
||||
top: self.$container[0].scrollTop,
|
||||
x: data.clientX
|
||||
|
|
@ -642,6 +643,7 @@ Ox.Calendar = function(options, self) {
|
|||
|
||||
function dragend(data) {
|
||||
if (self.drag) {
|
||||
Ox.$body.removeClass('OxDragging');
|
||||
dragafter(data);
|
||||
self.drag = null;
|
||||
}
|
||||
|
|
@ -659,6 +661,7 @@ Ox.Calendar = function(options, self) {
|
|||
}
|
||||
|
||||
function dragstartScrollbar(data) {
|
||||
Ox.$body.addClass('OxDragging');
|
||||
self.drag = {x: data.clientX};
|
||||
}
|
||||
|
||||
|
|
@ -682,6 +685,7 @@ Ox.Calendar = function(options, self) {
|
|||
}
|
||||
|
||||
function dragendScrollbar(data) {
|
||||
Ox.$body.removeClass('OxDragging');
|
||||
dragafterScrollbar(data);
|
||||
self.drag = null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue