dragScroll option

This commit is contained in:
Adam Shaw
2014-08-22 18:23:50 -07:00
parent 157152f7d0
commit 34c616ac4b
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -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;
+2
View File
@@ -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;
+1
View File
@@ -86,6 +86,7 @@ var defaults = {
dragOpacity: .75,
dragRevertDuration: 500,
dragScroll: true,
//selectable: false,
unselectAuto: true,