1
0
Fork 0
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:
rlx 2013-07-19 08:42:25 +00:00
commit 564ce69a78
17 changed files with 53 additions and 39 deletions

View file

@ -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;
}