mirror of
https://github.com/wassname/fullcalendar.git
synced 2026-06-27 16:10:13 +08:00
dragScroll option
This commit is contained in:
@@ -69,7 +69,7 @@ DragListener.prototype = {
|
||||
if (!this.isListening) {
|
||||
|
||||
// grab scroll container and attach handler
|
||||
if (ev) {
|
||||
if (ev && this.options.scroll) {
|
||||
scrollParent = getScrollParent($(ev.target));
|
||||
if (!scrollParent.is(window) && !scrollParent.is(document)) {
|
||||
this.scrollEl = scrollParent;
|
||||
|
||||
@@ -187,6 +187,7 @@ $.extend(Grid.prototype, {
|
||||
// of the view.
|
||||
var dragListener = new DragListener(view.coordMap, {
|
||||
distance: 5,
|
||||
scroll: view.opt('dragScroll'),
|
||||
listenStart: function(ev) {
|
||||
mouseFollower.hide(); // don't show until we know this is a real drag
|
||||
mouseFollower.start(ev);
|
||||
@@ -293,6 +294,7 @@ $.extend(Grid.prototype, {
|
||||
// Tracks mouse movement over the *grid's* coordinate map
|
||||
dragListener = new DragListener(this.coordMap, {
|
||||
distance: 5,
|
||||
scroll: view.opt('dragScroll'),
|
||||
dragStart: function(ev) {
|
||||
_this.triggerSegMouseout(seg, ev); // ensure a mouseout on the manipulated event has been reported
|
||||
_this.isResizingSeg = true;
|
||||
|
||||
@@ -86,6 +86,7 @@ var defaults = {
|
||||
|
||||
dragOpacity: .75,
|
||||
dragRevertDuration: 500,
|
||||
dragScroll: true,
|
||||
|
||||
//selectable: false,
|
||||
unselectAuto: true,
|
||||
|
||||
Reference in New Issue
Block a user